Class JMethodDecl
java.lang.Object
com.inductiveautomation.snap.javatree.JNode
com.inductiveautomation.snap.javatree.JMemberDecl
com.inductiveautomation.snap.javatree.JMethodDecl
- Direct Known Subclasses:
JConstructorDecl
A Java member for MethodDeclaration.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetBlock()Returns the block.Returns the class declarations.protected JClassDecl[]Returns the class declarations.Returns the part name.Returns the list of formal parameters.Class[]Returns the list of formal parameters.protected MemberReturns the member that this member overrides or implements, if available.Returns the throws list.getType()Returns the field type.Returns the method JTypeParameters.getVariableDeclInside(String aName) Returns a variable with given name.getVariableDecls(String aPrefix, 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(List<JExpr> theThrows) Sets the throws list.voidSets the field type.voidsetTypeParameters(List<JTypeParam> theTPs) Sets the method JTypeParameters.Methods inherited from class com.inductiveautomation.snap.javatree.JMemberDecl
getDeclaringClass, getIdentifier, getModifiers, getNameImpl, getSuperMember, getTypeParameter, setIdentifier, setModifiersMethods inherited from class com.inductiveautomation.snap.javatree.JNode
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
-
Constructor Details
-
JMethodDecl
public JMethodDecl()
-
-
Method Details
-
getType
Returns the field type. -
setType
Sets the field type. -
getTypeParameters
Returns the method JTypeParameters.- Overrides:
getTypeParametersin classJMemberDecl
-
setTypeParameters
Sets the method JTypeParameters. -
getParameters
Returns the list of formal parameters. -
getParametersTypes
Returns the list of formal parameters. -
getThrowsList
Returns the throws list. -
setThrowsList
Sets the throws list. -
isBlock
public boolean isBlock()Returns whether statement has a block associated with it. -
getBlock
Returns the block. -
setBlock
Sets the block. -
getVariableDeclInside
Returns a variable with given name.- Overrides:
getVariableDeclInsidein classJNode
-
getVariableDecls
Returns a variable with given name.- Overrides:
getVariableDeclsin classJNode
-
getClassDecls
Returns the class declarations. -
getClassDeclsImpl
Returns the class declarations. -
getSuperMemberImpl
Returns the member that this member overrides or implements, if available.- Overrides:
getSuperMemberImplin classJMemberDecl
-
getNodeString
Returns the part name.- Overrides:
getNodeStringin classJNode
-