| Modifier and Type | Field and Description |
|---|---|
| private Statement | |
| private boolean | |
| private final ClassNode[] | |
| private GenericsType[] | |
| private boolean | |
| private int | |
| private final String | |
| private Parameter[] | |
| private ClassNode | |
| private final boolean | |
| private boolean | |
| private String | |
| private VariableScope |
| Access | Constructor and Description |
|---|---|
| protected | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Statement | |
| public ClassNode[] | |
| public Statement | |
| public GenericsType[] | |
| public int | |
| public String | |
| public Parameter[] | |
| public ClassNode | |
| public String | Returns: string form of node with some generic elements suppressedOverrides org. |
| public String | getTypeDescriptor()
The type descriptor for a method node is a string containing the name of the method, its return type, and its parameter types in a canonical form. |
| public VariableScope | |
| public boolean | |
| public boolean | |
| private void | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | Returns: true if this class is public but had no explicit public modifierIndicates that this method has been "promoted" to public by Groovy when in fact there was no public modifier explicitly in the source code. |
| public boolean | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public String |
| code | back to summary |
|---|---|
| private Statement code | |
| dynamicReturnType | back to summary |
|---|---|
| private boolean dynamicReturnType | |
| exceptions | back to summary |
|---|---|
| private final ClassNode[] exceptions | |
| genericsTypes | back to summary |
|---|---|
| private GenericsType[] genericsTypes | |
| hasDefaultValue | back to summary |
|---|---|
| private boolean hasDefaultValue | |
| modifiers | back to summary |
|---|---|
| private int modifiers | |
| name | back to summary |
|---|---|
| private final String name | |
| parameters | back to summary |
|---|---|
| private Parameter[] parameters | |
| returnType | back to summary |
|---|---|
| private ClassNode returnType | |
| staticConstructor | back to summary |
|---|---|
| private final boolean staticConstructor | |
| syntheticPublic | back to summary |
|---|---|
| private boolean syntheticPublic | |
| typeDescriptor | back to summary |
|---|---|
| private String typeDescriptor | |
| variableScope | back to summary |
|---|---|
| private VariableScope variableScope | |
| MethodNode | back to summary |
|---|---|
| protected MethodNode() | |
| MethodNode | back to summary |
|---|---|
| public MethodNode(final String name, final int modifiers, final ClassNode returnType, final Parameter[] parameters, final ClassNode[] exceptions, final Statement code) | |
| getCode | back to summary |
|---|---|
| public Statement getCode() | |
| getExceptions | back to summary |
|---|---|
| public ClassNode[] getExceptions() | |
| getFirstStatement | back to summary |
|---|---|
| public Statement getFirstStatement() | |
| getGenericsTypes | back to summary |
|---|---|
| public GenericsType[] getGenericsTypes() | |
| getModifiers | back to summary |
|---|---|
| public int getModifiers() | |
| getName | back to summary |
|---|---|
| public String getName() | |
| getParameters | back to summary |
|---|---|
| public Parameter[] getParameters() | |
| getReturnType | back to summary |
|---|---|
| public ClassNode getReturnType() | |
| getText | back to summary |
|---|---|
| public String getText() Overrides org. Provides a nicely formatted string of the method definition. For simplicity, generic types on some of the elements are not displayed. | |
| getTypeDescriptor | back to summary |
|---|---|
| public String getTypeDescriptor() The type descriptor for a method node is a string containing the name of the method, its return type, and its parameter types in a canonical form. For simplicity, we use the format of a Java declaration without parameter names or generics. | |
| getVariableScope | back to summary |
|---|---|
| public VariableScope getVariableScope() | |
| hasAnnotationDefault | back to summary |
|---|---|
public boolean hasAnnotationDefault()
| |
| hasDefaultValue | back to summary |
|---|---|
public boolean hasDefaultValue()
| |
| invalidateCachedData | back to summary |
|---|---|
| private void invalidateCachedData() | |
| isAbstract | back to summary |
|---|---|
| public boolean isAbstract() | |
| isDefault | back to summary |
|---|---|
| public boolean isDefault() | |
| isDynamicReturnType | back to summary |
|---|---|
| public boolean isDynamicReturnType() | |
| isFinal | back to summary |
|---|---|
| public boolean isFinal() | |
| isPackageScope | back to summary |
|---|---|
| public boolean isPackageScope() | |
| isPrivate | back to summary |
|---|---|
| public boolean isPrivate() | |
| isProtected | back to summary |
|---|---|
| public boolean isProtected() | |
| isPublic | back to summary |
|---|---|
| public boolean isPublic() | |
| isScriptBody | back to summary |
|---|---|
public boolean isScriptBody()
| |
| isStatic | back to summary |
|---|---|
| public boolean isStatic() | |
| isStaticConstructor | back to summary |
|---|---|
| public boolean isStaticConstructor() | |
| isSyntheticPublic | back to summary |
|---|---|
| public boolean isSyntheticPublic() Indicates that this method has been "promoted" to public by Groovy when in fact there was no public modifier explicitly in the source code. I.e. it remembers that it has applied Groovy's "public methods by default" rule. This property is typically only of interest to AST transform writers.
| |
| isVoidMethod | back to summary |
|---|---|
| public boolean isVoidMethod() | |
| setAnnotationDefault | back to summary |
|---|---|
| public void setAnnotationDefault(boolean hasDefaultValue) | |
| setCode | back to summary |
|---|---|
| public void setCode(Statement code) | |
| setGenericsTypes | back to summary |
|---|---|
| public void setGenericsTypes(GenericsType[] genericsTypes) | |
| setIsScriptBody | back to summary |
|---|---|
| public void setIsScriptBody() Sets the flag for this method to indicate it is a script body implementation.
| |
| setModifiers | back to summary |
|---|---|
| public void setModifiers(int modifiers) | |
| setParameters | back to summary |
|---|---|
| public void setParameters(Parameter[] parameters) | |
| setReturnType | back to summary |
|---|---|
| public void setReturnType(ClassNode returnType) | |
| setSyntheticPublic | back to summary |
|---|---|
| public void setSyntheticPublic(boolean syntheticPublic) | |
| setVariableScope | back to summary |
|---|---|
| public void setVariableScope(VariableScope variableScope) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |