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 Member
Returns 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.boolean
isBlock()
Returns whether statement has a block associated with it.void
setBlock
(JStmtBlock aBlock) Sets the block.void
setThrowsList
(List<JExpr> theThrows) Sets the throws list.void
Sets the field type.void
setTypeParameters
(List<JTypeParam> theTPs) Sets the method JTypeParameters.Methods inherited from class com.inductiveautomation.snap.javatree.JMemberDecl
getDeclaringClass, getIdentifier, getModifiers, getNameImpl, getSuperMember, getTypeParameter, setIdentifier, setModifiers
Methods 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:
getTypeParameters
in 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:
getVariableDeclInside
in classJNode
-
getVariableDecls
Returns a variable with given name.- Overrides:
getVariableDecls
in classJNode
-
getClassDecls
Returns the class declarations. -
getClassDeclsImpl
Returns the class declarations. -
getSuperMemberImpl
Returns the member that this member overrides or implements, if available.- Overrides:
getSuperMemberImpl
in classJMemberDecl
-
getNodeString
Returns the part name.- Overrides:
getNodeString
in classJNode
-