|
Groovy 1.7.9 | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.groovy.ast.ASTNode
org.codehaus.groovy.ast.AnnotatedNode
org.codehaus.groovy.ast.MethodNode
public class MethodNode extends AnnotatedNode
Represents a method declaration
Constructor Summary | |
MethodNode(String name, int modifiers, ClassNode returnType, Parameter[] parameters, ClassNode[] exceptions, Statement code)
|
Method Summary | |
---|---|
Statement
|
getCode()
|
ClassNode[]
|
getExceptions()
|
Statement
|
getFirstStatement()
|
GenericsType[]
|
getGenericsTypes()
|
int
|
getModifiers()
|
String
|
getName()
|
Parameter[]
|
getParameters()
|
ClassNode
|
getReturnType()
|
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. |
VariableScope
|
getVariableScope()
|
boolean
|
hasAnnotationDefault()
|
boolean
|
hasDefaultValue()
|
boolean
|
isAbstract()
|
boolean
|
isDynamicReturnType()
|
boolean
|
isPrivate()
|
boolean
|
isProtected()
|
boolean
|
isPublic()
|
boolean
|
isStatic()
|
boolean
|
isStaticConstructor()
|
boolean
|
isVoidMethod()
|
void
|
setAnnotationDefault(boolean b)
|
void
|
setCode(Statement code)
|
void
|
setGenericsTypes(GenericsType[] genericsTypes)
|
void
|
setModifiers(int modifiers)
|
void
|
setParameters(Parameter[] parameters)
|
void
|
setReturnType(ClassNode returnType)
|
void
|
setVariableScope(VariableScope variableScope)
|
String
|
toString()
|
Methods inherited from class AnnotatedNode | |
---|---|
addAnnotation, addAnnotations, getAnnotations, getAnnotations, getDeclaringClass, hasNoRealSourcePosition, isSynthetic, setDeclaringClass, setHasNoRealSourcePosition, setSynthetic |
Methods inherited from class ASTNode | |
---|---|
copyNodeMetaData, getColumnNumber, getLastColumnNumber, getLastLineNumber, getLineNumber, getNodeMetaData, getText, removeNodeMetaData, setColumnNumber, setLastColumnNumber, setLastLineNumber, setLineNumber, setNodeMetaData, setSourcePosition, visit |
Methods inherited from class Object | |
---|---|
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
Constructor Detail |
---|
public MethodNode(String name, int modifiers, ClassNode returnType, Parameter[] parameters, ClassNode[] exceptions, Statement code)
Method Detail |
---|
public Statement getCode()
public ClassNode[] getExceptions()
public Statement getFirstStatement()
public GenericsType[] getGenericsTypes()
public int getModifiers()
public String getName()
public Parameter[] getParameters()
public ClassNode getReturnType()
public String getTypeDescriptor()
public VariableScope getVariableScope()
public boolean hasAnnotationDefault()
public boolean hasDefaultValue()
public boolean isAbstract()
public boolean isDynamicReturnType()
public boolean isPrivate()
public boolean isProtected()
public boolean isPublic()
public boolean isStatic()
public boolean isStaticConstructor()
public boolean isVoidMethod()
public void setAnnotationDefault(boolean b)
public void setCode(Statement code)
public void setGenericsTypes(GenericsType[] genericsTypes)
public void setModifiers(int modifiers)
public void setParameters(Parameter[] parameters)
public void setReturnType(ClassNode returnType)
public void setVariableScope(VariableScope variableScope)
public String toString()
Copyright © 2003-2010 The Codehaus. All rights reserved.