|
|||||
FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Represents a method declaration
Field Summary | |
---|---|
Statement |
code
|
boolean |
dynamicReturnType
|
def |
exceptions
|
def |
genericsTypes
|
boolean |
hasDefaultValue
|
int |
modifiers
|
String |
name
|
def |
parameters
|
ClassNode |
returnType
|
VariableScope |
variableScope
|
Constructor Summary | |
MethodNode(String name, int modifiers, ClassNode returnType, def parameters, def exceptions, Statement code)
|
Method Summary | |
---|---|
Statement |
getCode()
|
def |
getExceptions()
|
Statement |
getFirstStatement()
|
def |
getGenericsTypes()
|
int |
getModifiers()
|
String |
getName()
|
def |
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 |
hasDefaultValue()
|
boolean |
isAbstract()
|
boolean |
isDynamicReturnType()
|
boolean |
isProtected()
|
boolean |
isPublic()
|
boolean |
isStatic()
|
boolean |
isVoidMethod()
|
void |
setCode(Statement code)
|
void |
setGenericsTypes(def genericsTypes)
|
void |
setModifiers(int modifiers)
|
void |
setParameters(def parameters)
|
void |
setReturnType(ClassNode returnType)
|
void |
setVariableScope(VariableScope variableScope)
|
String |
toString()
|
Constructor Detail |
---|
public MethodNode(String name, int modifiers, ClassNode returnType, def parameters, def exceptions, Statement code)
Method Detail |
---|
public Statement getCode()
public def getExceptions()
public Statement getFirstStatement()
public def getGenericsTypes()
public int getModifiers()
public String getName()
public def getParameters()
public ClassNode getReturnType()
public String getTypeDescriptor()
public VariableScope getVariableScope()
public boolean hasDefaultValue()
public boolean isAbstract()
public boolean isDynamicReturnType()
public boolean isProtected()
public boolean isPublic()
public boolean isStatic()
public boolean isVoidMethod()
public void setCode(Statement code)
public void setGenericsTypes(def genericsTypes)
public void setModifiers(int modifiers)
public void setParameters(def parameters)
public void setReturnType(ClassNode returnType)
public void setVariableScope(VariableScope variableScope)
public String toString()