KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > source > tree > MethodTree


1 /*
2  * @(#)MethodTree.java 1.4 06/07/11
3  *
4  * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
5  * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
6  *
7  * Use and Distribution is subject to the Java Research License available
8  * at <http://wwws.sun.com/software/communitysource/jrl.html>.
9  */

10
11 package com.sun.source.tree;
12
13 import java.util.List JavaDoc;
14 import javax.lang.model.element.Name;
15
16 /**
17  * A tree node for a method or annotation type element declaration.
18  *
19  * For example:
20  * <pre>
21  * <em>modifiers</em> <em>typeParameters</em> <em>type</em> <em>name</em>
22  * ( <em>parameters</em> )
23  * <em>body</em>
24  *
25  * <em>modifiers</em> <em>type</em> <em>name</em> () default <em>defaultValue</em>
26  * </pre>
27  *
28  * @see "The Java Language Specification, 3rd ed, sections 8.4, 8.6, 8.7,
29  * 9.4, and 9.6"
30  *
31  * @author Peter von der Ah&eacute;
32  * @author Jonathan Gibbons
33  * @since 1.6
34  */

35 public interface MethodTree extends Tree {
36     ModifiersTree getModifiers();
37     Name getName();
38     Tree getReturnType();
39     List JavaDoc<? extends TypeParameterTree> getTypeParameters();
40     List JavaDoc<? extends VariableTree> getParameters();
41     List JavaDoc<? extends ExpressionTree> getThrows();
42     BlockTree getBody();
43     Tree getDefaultValue(); // for annotation types
44
}
45
Popular Tags