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, setModifiersaddChild, 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, toStringpublic JType getType()
public void setType(JType aType)
public java.util.List<JTypeParam> getTypeParameters()
getTypeParameters in class JMemberDeclpublic 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 JNodepublic java.util.List<JVariableDecl> getVariableDecls(java.lang.String aPrefix, java.util.List<JVariableDecl> theVariables)
getVariableDecls in class JNodepublic JClassDecl[] getClassDecls()
protected JClassDecl[] getClassDeclsImpl()
protected java.lang.reflect.Member getSuperMemberImpl()
getSuperMemberImpl in class JMemberDeclpublic java.lang.String getNodeString()
getNodeString in class JNode