Class JMethodDecl
- java.lang.Object
- 
- com.inductiveautomation.snap.javatree.JNode
- 
- com.inductiveautomation.snap.javatree.JMemberDecl
- 
- com.inductiveautomation.snap.javatree.JMethodDecl
 
 
 
- 
- Direct Known Subclasses:
- JConstructorDecl
 
 public class JMethodDecl extends JMemberDecl A Java member for MethodDeclaration.
- 
- 
Constructor SummaryConstructors Constructor Description JMethodDecl()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description JStmtBlockgetBlock()Returns the block.JClassDecl[]getClassDecls()Returns the class declarations.protected JClassDecl[]getClassDeclsImpl()Returns the class declarations.java.lang.StringgetNodeString()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.MembergetSuperMemberImpl()Returns the member that this member overrides or implements, if available.java.util.List<JExpr>getThrowsList()Returns the throws list.JTypegetType()Returns the field type.java.util.List<JTypeParam>getTypeParameters()Returns the method JTypeParameters.JVariableDeclgetVariableDeclInside(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.booleanisBlock()Returns whether statement has a block associated with it.voidsetBlock(JStmtBlock aBlock)Sets the block.voidsetThrowsList(java.util.List<JExpr> theThrows)Sets the throws list.voidsetType(JType aType)Sets the field type.voidsetTypeParameters(java.util.List<JTypeParam> theTPs)Sets the method JTypeParameters.- 
Methods inherited from class com.inductiveautomation.snap.javatree.JMemberDeclgetDeclaringClass, getIdentifier, getModifiers, getNameImpl, getSuperMember, getTypeParameter, setIdentifier, setModifiers
 - 
Methods inherited from class com.inductiveautomation.snap.javatree.JNodeaddChild, 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
 
- 
 
- 
- 
- 
Method Detail- 
getTypepublic JType getType() Returns the field type.
 - 
setTypepublic void setType(JType aType) Sets the field type.
 - 
getTypeParameterspublic java.util.List<JTypeParam> getTypeParameters() Returns the method JTypeParameters.- Overrides:
- getTypeParametersin class- JMemberDecl
 
 - 
setTypeParameterspublic void setTypeParameters(java.util.List<JTypeParam> theTPs) Sets the method JTypeParameters.
 - 
getParameterspublic java.util.List<JVariableDecl> getParameters() Returns the list of formal parameters.
 - 
getParametersTypespublic java.lang.Class[] getParametersTypes() Returns the list of formal parameters.
 - 
getThrowsListpublic java.util.List<JExpr> getThrowsList() Returns the throws list.
 - 
setThrowsListpublic void setThrowsList(java.util.List<JExpr> theThrows) Sets the throws list.
 - 
isBlockpublic boolean isBlock() Returns whether statement has a block associated with it.
 - 
getBlockpublic JStmtBlock getBlock() Returns the block.
 - 
setBlockpublic void setBlock(JStmtBlock aBlock) Sets the block.
 - 
getVariableDeclInsidepublic JVariableDecl getVariableDeclInside(java.lang.String aName) Returns a variable with given name.- Overrides:
- getVariableDeclInsidein class- JNode
 
 - 
getVariableDeclspublic java.util.List<JVariableDecl> getVariableDecls(java.lang.String aPrefix, java.util.List<JVariableDecl> theVariables) Returns a variable with given name.- Overrides:
- getVariableDeclsin class- JNode
 
 - 
getClassDeclspublic JClassDecl[] getClassDecls() Returns the class declarations.
 - 
getClassDeclsImplprotected JClassDecl[] getClassDeclsImpl() Returns the class declarations.
 - 
getSuperMemberImplprotected java.lang.reflect.Member getSuperMemberImpl() Returns the member that this member overrides or implements, if available.- Overrides:
- getSuperMemberImplin class- JMemberDecl
 
 - 
getNodeStringpublic java.lang.String getNodeString() Returns the part name.- Overrides:
- getNodeStringin class- JNode
 
 
- 
 
-