Class JVariableDecl
java.lang.Object
com.inductiveautomation.snap.javatree.JNode
com.inductiveautomation.snap.javatree.JVariableDecl
A JNode to represent a defined variable. Found in FieldDeclaration, Method.FormalParameter(s),
 Block.BlockStatement.LocalVariableDeclaration.
- 
Field SummaryFieldsModifier and TypeFieldDescriptionint
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected StringTries to resolve the class name for this node.Returns the declaring class, if field variable.protected StringResolves the name from identifier.Returns a list of references to this variable.protected voidgetReferences(JNode aPart, String aName, List theReferences) Returns a list of references to given name.getVariableDeclInside(String aName) Returns a variable with given name.Methods inherited from class com.inductiveautomation.snap.javatree.JNodeaddChild, buildChildren, getBlock, getChild, getChildCount, getChildren, getClassLoader, getClassName, getClassRef, getClassRefImpl, getEnclosingClassDecl, getEnclosingMemberDecl, getEnclosingMethodDecl, getEnd, getEndToken, getFile, getJClass, getLineIndex, getName, getNodeAtCharIndex, getNodeFields, getNodeFieldsImpl, getNodeParents, getNodePath, getNodeString, getOthers, getParent, getParent, getReferencedClasses, getReferencedClassNames, getReferencedClassNames, getReferencedClassNames, getStart, getStartToken, getString, getVariableDecl, getVariableDecls, isBlock, setClassName, setClassRef, setEndToken, setJClass, setParent, setStartToken, toString
- 
Field Details- 
type
- 
identifier
- 
arrayCountpublic int arrayCount
- 
initializer
- 
arrayInitializer
 
- 
- 
Constructor Details- 
JVariableDeclpublic JVariableDecl()
 
- 
- 
Method Details- 
getNameImplResolves the name from identifier.- Overrides:
- getNameImplin class- JNode
 
- 
getDeclaringClassReturns the declaring class, if field variable.
- 
getClassNameImplTries to resolve the class name for this node.- Overrides:
- getClassNameImplin class- JNode
 
- 
getReferencesReturns a list of references to this variable.
- 
getReferencesReturns a list of references to given name.
- 
getVariableDeclInsideReturns a variable with given name.- Overrides:
- getVariableDeclInsidein class- JNode
 
 
-