Class JType
java.lang.Object
com.inductiveautomation.snap.javatree.JNode
com.inductiveautomation.snap.javatree.JType
A JNode for types.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Standard equals implementation.protected String
Tries to resolve the class name for this node.protected String
Resolves the type name.Returns a list of all JTypes that match this JType.Returns the simple name.int
hashCode()
Standard hashCode implementation.boolean
Returns whether type is array.boolean
Returns whether type is reference (array or class/interface type).Methods inherited from class com.inductiveautomation.snap.javatree.JNode
addChild, buildChildren, getBlock, getChild, getChildCount, getChildren, getClassLoader, getClassName, getClassRef, getClassRefImpl, getEnclosingClassDecl, getEnclosingMemberDecl, getEnclosingMethodDecl, getEnd, getEndToken, getFile, getJClass, getLineIndex, getName, getNodeAtCharIndex, getNodeFields, getNodeFieldsImpl, getNodeParents, getNodePath, getNodeString, getParent, getParent, getReferencedClasses, getReferencedClassNames, getReferencedClassNames, getReferencedClassNames, getStart, getStartToken, getString, getVariableDecl, getVariableDeclInside, getVariableDecls, isBlock, setClassName, setClassRef, setEndToken, setJClass, setParent, setStartToken, toString
-
Field Details
-
isPrimative
public boolean isPrimative -
arrayCount
public int arrayCount -
name
-
-
Constructor Details
-
JType
public JType()
-
-
Method Details
-
getNameImpl
Resolves the type name.- Overrides:
getNameImpl
in classJNode
-
getSimpleName
Returns the simple name. -
isArrayType
public boolean isArrayType()Returns whether type is array. -
isReferenceType
public boolean isReferenceType()Returns whether type is reference (array or class/interface type). -
getClassNameImpl
Tries to resolve the class name for this node.- Overrides:
getClassNameImpl
in classJNode
-
getOthers
Returns a list of all JTypes that match this JType. -
equals
Standard equals implementation. -
hashCode
public int hashCode()Standard hashCode implementation.
-