public class JMethodDecl extends JMemberDecl
Constructor and Description |
---|
JMethodDecl() |
Modifier and Type | Method and Description |
---|---|
JStmtBlock |
getBlock()
Returns the block.
|
JClassDecl[] |
getClassDecls()
Returns the class declarations.
|
protected JClassDecl[] |
getClassDeclsImpl()
Returns the class declarations.
|
java.lang.String |
getNodeString()
Returns the part name.
|
java.util.List<JVariableDecl> |
getParameters()
Returns the list of formal parameters.
|
java.lang.Class[] |
getParametersTypes()
Returns the list of formal parameters.
|
protected java.lang.reflect.Member |
getSuperMemberImpl()
Returns the member that this member overrides or implements, if available.
|
java.util.List<JExpr> |
getThrowsList()
Returns the throws list.
|
JType |
getType()
Returns the field type.
|
java.util.List<JTypeParam> |
getTypeParameters()
Returns the method JTypeParameters.
|
JVariableDecl |
getVariableDeclInside(java.lang.String aName)
Returns a variable with given name.
|
java.util.List<JVariableDecl> |
getVariableDecls(java.lang.String aPrefix,
java.util.List<JVariableDecl> theVariables)
Returns a variable with given name.
|
boolean |
isBlock()
Returns whether statement has a block associated with it.
|
void |
setBlock(JStmtBlock aBlock)
Sets the block.
|
void |
setThrowsList(java.util.List<JExpr> theThrows)
Sets the throws list.
|
void |
setType(JType aType)
Sets the field type.
|
void |
setTypeParameters(java.util.List<JTypeParam> theTPs)
Sets the method JTypeParameters.
|
getDeclaringClass, getIdentifier, getModifiers, getNameImpl, getSuperMember, getTypeParameter, setIdentifier, setModifiers
addChild, buildChildren, getChild, getChildCount, getChildren, getClassLoader, getClassName, getClassNameImpl, getClassRef, getClassRefImpl, getEnclosingClassDecl, getEnclosingMemberDecl, getEnclosingMethodDecl, getEnd, getEndToken, getFile, getJClass, getLineIndex, getName, getNodeAtCharIndex, getNodeFields, getNodeFieldsImpl, getNodeParents, getNodePath, getOthers, getParent, getParent, getReferencedClasses, getReferencedClassNames, getReferencedClassNames, getReferencedClassNames, getStart, getStartToken, getString, getVariableDecl, setClassName, setClassRef, setEndToken, setJClass, setParent, setStartToken, toString
public JType getType()
public void setType(JType aType)
public java.util.List<JTypeParam> getTypeParameters()
getTypeParameters
in class JMemberDecl
public void setTypeParameters(java.util.List<JTypeParam> theTPs)
public java.util.List<JVariableDecl> getParameters()
public java.lang.Class[] getParametersTypes()
public java.util.List<JExpr> getThrowsList()
public void setThrowsList(java.util.List<JExpr> theThrows)
public boolean isBlock()
public JStmtBlock getBlock()
public void setBlock(JStmtBlock aBlock)
public JVariableDecl getVariableDeclInside(java.lang.String aName)
getVariableDeclInside
in class JNode
public java.util.List<JVariableDecl> getVariableDecls(java.lang.String aPrefix, java.util.List<JVariableDecl> theVariables)
getVariableDecls
in class JNode
public JClassDecl[] getClassDecls()
protected JClassDecl[] getClassDeclsImpl()
protected java.lang.reflect.Member getSuperMemberImpl()
getSuperMemberImpl
in class JMemberDecl
public java.lang.String getNodeString()
getNodeString
in class JNode