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 TypeMethodDescriptionbooleanStandard equals implementation.protected StringTries to resolve the class name for this node.protected StringResolves the type name.Returns a list of all JTypes that match this JType.Returns the simple name.inthashCode()Standard hashCode implementation.booleanReturns whether type is array.booleanReturns 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:
getNameImplin 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:
getClassNameImplin classJNode
-
getOthers
Returns a list of all JTypes that match this JType. -
equals
Standard equals implementation. -
hashCode
public int hashCode()Standard hashCode implementation.
-