Class JIdentifier
java.lang.Object
com.inductiveautomation.snap.javatree.JNode
com.inductiveautomation.snap.javatree.JExpr
com.inductiveautomation.snap.javatree.JIdentifier
A JExpr subclass for identifiers.
- 
Nested Class SummaryNested ClassesNested classes/interfaces inherited from class com.inductiveautomation.snap.javatree.JExprJExpr.AllocationExpr, JExpr.ArrayIndexExpr, JExpr.CastExpr
- 
Constructor SummaryConstructorsConstructorDescriptionCreates a new identifier.JIdentifier(JType aType) Creates a new identifier for given JType: this probably needs to go!JIdentifier(String aName) Creates a new identifier for given value.
- 
Method SummaryModifier and TypeMethodDescriptionprotected StringTries to resolve the class name for this node.Returns the Identifier type: Variable, Field, Class or Package (tries to resolve it if unknown).Returns the method call if parent is method call.Returns the method declaration if parent is method declaration.Returns the part name.Returns a list of other ids for this id.Returns the full package name for this package identifier.Returns the Identifier variable declaration.booleanReturns whether this is Class identifier.booleanReturns whether this is ClassField identifier.booleanReturns whether this identifier is a method name.booleanReturns whether this is package identifier.booleanReturns whether this is variable identifier.voidSets the name for Identifier or Method.protected voidsetPackageName(String aName) Returns the full package name for this package identifier.voidsetVariableDecl(JVariableDecl aVarDecl) Sets the Identifier variable declaration.Methods inherited from class com.inductiveautomation.snap.javatree.JExprgetParentClassRef, getParentExprMethods 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, getNameImpl, getNodeAtCharIndex, getNodeFields, getNodeFieldsImpl, getNodeParents, getNodePath, getParent, getParent, getReferencedClasses, getReferencedClassNames, getReferencedClassNames, getReferencedClassNames, getStart, getStartToken, getString, getVariableDecl, getVariableDeclInside, getVariableDecls, isBlock, setClassName, setClassRef, setEndToken, setJClass, setParent, setStartToken, toString
- 
Constructor Details- 
JIdentifierpublic JIdentifier()Creates a new identifier.
- 
JIdentifierCreates a new identifier for given value.
- 
JIdentifierCreates a new identifier for given JType: this probably needs to go!
 
- 
- 
Method Details- 
setNameSets the name for Identifier or Method.
- 
getIdentifierTypeReturns the Identifier type: Variable, Field, Class or Package (tries to resolve it if unknown).
- 
isVariableIdpublic boolean isVariableId()Returns whether this is variable identifier.
- 
isClassNamepublic boolean isClassName()Returns whether this is Class identifier.
- 
isFieldNamepublic boolean isFieldName()Returns whether this is ClassField identifier.
- 
isMethodNamepublic boolean isMethodName()Returns whether this identifier is a method name.
- 
getMethodCallReturns the method call if parent is method call.
- 
getMethodDeclReturns the method declaration if parent is method declaration.
- 
isPackageNamepublic boolean isPackageName()Returns whether this is package identifier.
- 
getPackageNameReturns the full package name for this package identifier.
- 
setPackageNameReturns the full package name for this package identifier.
- 
getVariableDeclReturns the Identifier variable declaration.
- 
setVariableDeclSets the Identifier variable declaration.
- 
getClassNameImplTries to resolve the class name for this node.- Overrides:
- getClassNameImplin class- JNode
 
- 
getNodeStringReturns the part name.- Overrides:
- getNodeStringin class- JNode
 
- 
getOthersReturns a list of other ids for this id.
 
-