Lines 68-74
Link Here
|
68 |
public class MethodDeclaration extends BodyDeclaration { |
68 |
public class MethodDeclaration extends BodyDeclaration { |
69 |
|
69 |
|
70 |
/** |
70 |
/** |
71 |
* The "javadoc" structural property of this node type. |
71 |
* The "javadoc" structural property of this node type (child type: {@link Javadoc}). |
72 |
* @since 3.0 |
72 |
* @since 3.0 |
73 |
*/ |
73 |
*/ |
74 |
public static final ChildPropertyDescriptor JAVADOC_PROPERTY = |
74 |
public static final ChildPropertyDescriptor JAVADOC_PROPERTY = |
Lines 89-151
Link Here
|
89 |
internalModifiers2PropertyFactory(MethodDeclaration.class); |
89 |
internalModifiers2PropertyFactory(MethodDeclaration.class); |
90 |
|
90 |
|
91 |
/** |
91 |
/** |
92 |
* The "constructor" structural property of this node type. |
92 |
* The "constructor" structural property of this node type (type: {@link Boolean}). |
93 |
* @since 3.0 |
93 |
* @since 3.0 |
94 |
*/ |
94 |
*/ |
95 |
public static final SimplePropertyDescriptor CONSTRUCTOR_PROPERTY = |
95 |
public static final SimplePropertyDescriptor CONSTRUCTOR_PROPERTY = |
96 |
new SimplePropertyDescriptor(MethodDeclaration.class, "constructor", boolean.class, MANDATORY); //$NON-NLS-1$ |
96 |
new SimplePropertyDescriptor(MethodDeclaration.class, "constructor", boolean.class, MANDATORY); //$NON-NLS-1$ |
97 |
|
97 |
|
98 |
/** |
98 |
/** |
99 |
* The "name" structural property of this node type. |
99 |
* The "name" structural property of this node type (child type: {@link SimpleName}). |
100 |
* @since 3.0 |
100 |
* @since 3.0 |
101 |
*/ |
101 |
*/ |
102 |
public static final ChildPropertyDescriptor NAME_PROPERTY = |
102 |
public static final ChildPropertyDescriptor NAME_PROPERTY = |
103 |
new ChildPropertyDescriptor(MethodDeclaration.class, "name", SimpleName.class, MANDATORY, NO_CYCLE_RISK); //$NON-NLS-1$ |
103 |
new ChildPropertyDescriptor(MethodDeclaration.class, "name", SimpleName.class, MANDATORY, NO_CYCLE_RISK); //$NON-NLS-1$ |
104 |
|
104 |
|
105 |
/** |
105 |
/** |
106 |
* The "returnType" structural property of this node type (JLS2 API only). |
106 |
* The "returnType" structural property of this node type (child type: {@link Type}) (JLS2 API only). |
107 |
* @since 3.0 |
107 |
* @since 3.0 |
108 |
*/ |
108 |
*/ |
109 |
public static final ChildPropertyDescriptor RETURN_TYPE_PROPERTY = |
109 |
public static final ChildPropertyDescriptor RETURN_TYPE_PROPERTY = |
110 |
new ChildPropertyDescriptor(MethodDeclaration.class, "returnType", Type.class, MANDATORY, NO_CYCLE_RISK); //$NON-NLS-1$ |
110 |
new ChildPropertyDescriptor(MethodDeclaration.class, "returnType", Type.class, MANDATORY, NO_CYCLE_RISK); //$NON-NLS-1$ |
111 |
|
111 |
|
112 |
/** |
112 |
/** |
113 |
* The "returnType2" structural property of this node type (added in JLS3 API). |
113 |
* The "returnType2" structural property of this node type (child type: {@link Type}) (added in JLS3 API). |
114 |
* @since 3.1 |
114 |
* @since 3.1 |
115 |
*/ |
115 |
*/ |
116 |
public static final ChildPropertyDescriptor RETURN_TYPE2_PROPERTY = |
116 |
public static final ChildPropertyDescriptor RETURN_TYPE2_PROPERTY = |
117 |
new ChildPropertyDescriptor(MethodDeclaration.class, "returnType2", Type.class, OPTIONAL, NO_CYCLE_RISK); //$NON-NLS-1$ |
117 |
new ChildPropertyDescriptor(MethodDeclaration.class, "returnType2", Type.class, OPTIONAL, NO_CYCLE_RISK); //$NON-NLS-1$ |
118 |
|
118 |
|
119 |
/** |
119 |
/** |
120 |
* The "extraDimensions" structural property of this node type. |
120 |
* The "extraDimensions" structural property of this node type (type: {@link Integer}). |
121 |
* @since 3.0 |
121 |
* @since 3.0 |
122 |
*/ |
122 |
*/ |
123 |
public static final SimplePropertyDescriptor EXTRA_DIMENSIONS_PROPERTY = |
123 |
public static final SimplePropertyDescriptor EXTRA_DIMENSIONS_PROPERTY = |
124 |
new SimplePropertyDescriptor(MethodDeclaration.class, "extraDimensions", int.class, MANDATORY); //$NON-NLS-1$ |
124 |
new SimplePropertyDescriptor(MethodDeclaration.class, "extraDimensions", int.class, MANDATORY); //$NON-NLS-1$ |
125 |
|
125 |
|
126 |
/** |
126 |
/** |
127 |
* The "typeParameters" structural property of this node type (added in JLS3 API). |
127 |
* The "typeParameters" structural property of this node type (element type: {@link TypeParameter}) (added in JLS3 API). |
128 |
* @since 3.1 |
128 |
* @since 3.1 |
129 |
*/ |
129 |
*/ |
130 |
public static final ChildListPropertyDescriptor TYPE_PARAMETERS_PROPERTY = |
130 |
public static final ChildListPropertyDescriptor TYPE_PARAMETERS_PROPERTY = |
131 |
new ChildListPropertyDescriptor(MethodDeclaration.class, "typeParameters", TypeParameter.class, NO_CYCLE_RISK); //$NON-NLS-1$ |
131 |
new ChildListPropertyDescriptor(MethodDeclaration.class, "typeParameters", TypeParameter.class, NO_CYCLE_RISK); //$NON-NLS-1$ |
132 |
|
132 |
|
133 |
/** |
133 |
/** |
134 |
* The "parameters" structural property of this node type). |
134 |
* The "parameters" structural property of this node type (element type: {@link SingleVariableDeclaration}). |
135 |
* @since 3.0 |
135 |
* @since 3.0 |
136 |
*/ |
136 |
*/ |
137 |
public static final ChildListPropertyDescriptor PARAMETERS_PROPERTY = |
137 |
public static final ChildListPropertyDescriptor PARAMETERS_PROPERTY = |
138 |
new ChildListPropertyDescriptor(MethodDeclaration.class, "parameters", SingleVariableDeclaration.class, CYCLE_RISK); //$NON-NLS-1$ |
138 |
new ChildListPropertyDescriptor(MethodDeclaration.class, "parameters", SingleVariableDeclaration.class, CYCLE_RISK); //$NON-NLS-1$ |
139 |
|
139 |
|
140 |
/** |
140 |
/** |
141 |
* The "thrownExceptions" structural property of this node type). |
141 |
* The "thrownExceptions" structural property of this node type (element type: {@link Name}). |
142 |
* @since 3.0 |
142 |
* @since 3.0 |
143 |
*/ |
143 |
*/ |
144 |
public static final ChildListPropertyDescriptor THROWN_EXCEPTIONS_PROPERTY = |
144 |
public static final ChildListPropertyDescriptor THROWN_EXCEPTIONS_PROPERTY = |
145 |
new ChildListPropertyDescriptor(MethodDeclaration.class, "thrownExceptions", Name.class, NO_CYCLE_RISK); //$NON-NLS-1$ |
145 |
new ChildListPropertyDescriptor(MethodDeclaration.class, "thrownExceptions", Name.class, NO_CYCLE_RISK); //$NON-NLS-1$ |
146 |
|
146 |
|
147 |
/** |
147 |
/** |
148 |
* The "body" structural property of this node type. |
148 |
* The "body" structural property of this node type (child type: {@link Block}). |
149 |
* @since 3.0 |
149 |
* @since 3.0 |
150 |
*/ |
150 |
*/ |
151 |
public static final ChildPropertyDescriptor BODY_PROPERTY = |
151 |
public static final ChildPropertyDescriptor BODY_PROPERTY = |
Lines 227-233
Link Here
|
227 |
|
227 |
|
228 |
/** |
228 |
/** |
229 |
* The parameter declarations |
229 |
* The parameter declarations |
230 |
* (element type: <code>SingleVariableDeclaration</code>). |
230 |
* (element type: {@link SingleVariableDeclaration}). |
231 |
* Defaults to an empty list. |
231 |
* Defaults to an empty list. |
232 |
*/ |
232 |
*/ |
233 |
private ASTNode.NodeList parameters = |
233 |
private ASTNode.NodeList parameters = |
Lines 248-254
Link Here
|
248 |
private boolean returnType2Initialized = false; |
248 |
private boolean returnType2Initialized = false; |
249 |
|
249 |
|
250 |
/** |
250 |
/** |
251 |
* The type paramters (element type: <code>TypeParameter</code>). |
251 |
* The type paramters (element type: {@link TypeParameter}). |
252 |
* Null in JLS2. Added in JLS3; defaults to an empty list |
252 |
* Null in JLS2. Added in JLS3; defaults to an empty list |
253 |
* (see constructor). |
253 |
* (see constructor). |
254 |
* @since 3.1 |
254 |
* @since 3.1 |
Lines 264-270
Link Here
|
264 |
private int extraArrayDimensions = 0; |
264 |
private int extraArrayDimensions = 0; |
265 |
|
265 |
|
266 |
/** |
266 |
/** |
267 |
* The list of thrown exception names (element type: <code>Name</code>). |
267 |
* The list of thrown exception names (element type: {@link Name}). |
268 |
* Defaults to an empty list. |
268 |
* Defaults to an empty list. |
269 |
*/ |
269 |
*/ |
270 |
private ASTNode.NodeList thrownExceptions = |
270 |
private ASTNode.NodeList thrownExceptions = |
Lines 533-539
Link Here
|
533 |
* declaration (added in JLS3 API). This list is non-empty for parameterized methods. |
533 |
* declaration (added in JLS3 API). This list is non-empty for parameterized methods. |
534 |
* |
534 |
* |
535 |
* @return the live list of type parameters |
535 |
* @return the live list of type parameters |
536 |
* (element type: <code>TypeParameter</code>) |
536 |
* (element type: {@link TypeParameter}) |
537 |
* @exception UnsupportedOperationException if this operation is used in |
537 |
* @exception UnsupportedOperationException if this operation is used in |
538 |
* a JLS2 AST |
538 |
* a JLS2 AST |
539 |
* @since 3.1 |
539 |
* @since 3.1 |
Lines 594-600
Link Here
|
594 |
* method declaration. |
594 |
* method declaration. |
595 |
* |
595 |
* |
596 |
* @return the live list of method parameter declarations |
596 |
* @return the live list of method parameter declarations |
597 |
* (element type: <code>SingleVariableDeclaration</code>) |
597 |
* (element type: {@link SingleVariableDeclaration}) |
598 |
*/ |
598 |
*/ |
599 |
public List parameters() { |
599 |
public List parameters() { |
600 |
return this.parameters; |
600 |
return this.parameters; |
Lines 630-636
Link Here
|
630 |
* declaration. |
630 |
* declaration. |
631 |
* |
631 |
* |
632 |
* @return the live list of exception names |
632 |
* @return the live list of exception names |
633 |
* (element type: <code>Name</code>) |
633 |
* (element type: {@link Name}) |
634 |
*/ |
634 |
*/ |
635 |
public List thrownExceptions() { |
635 |
public List thrownExceptions() { |
636 |
return this.thrownExceptions; |
636 |
return this.thrownExceptions; |