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 SummaryConstructors
- 
Method SummaryModifier 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.JMemberDeclgetDeclaringClass, getIdentifier, getModifiers, getNameImpl, getSuperMember, getTypeParameter, setIdentifier, setModifiersMethods 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
- 
Constructor Details- 
JMethodDeclpublic JMethodDecl()
 
- 
- 
Method Details- 
getTypeReturns the field type.
- 
setTypeSets the field type.
- 
getTypeParametersReturns the method JTypeParameters.- Overrides:
- getTypeParametersin class- JMemberDecl
 
- 
setTypeParametersSets the method JTypeParameters.
- 
getParametersReturns the list of formal parameters.
- 
getParametersTypesReturns the list of formal parameters.
- 
getThrowsListReturns the throws list.
- 
setThrowsListSets the throws list.
- 
isBlockpublic boolean isBlock()Returns whether statement has a block associated with it.
- 
getBlockReturns the block.
- 
setBlockSets the block.
- 
getVariableDeclInsideReturns a variable with given name.- Overrides:
- getVariableDeclInsidein class- JNode
 
- 
getVariableDeclsReturns a variable with given name.- Overrides:
- getVariableDeclsin class- JNode
 
- 
getClassDeclsReturns the class declarations.
- 
getClassDeclsImplReturns the class declarations.
- 
getSuperMemberImplReturns the member that this member overrides or implements, if available.- Overrides:
- getSuperMemberImplin class- JMemberDecl
 
- 
getNodeStringReturns the part name.- Overrides:
- getNodeStringin class- JNode
 
 
-