Class JType
- java.lang.Object
-
- com.inductiveautomation.snap.javatree.JNode
-
- com.inductiveautomation.snap.javatree.JType
-
public class JType extends JNode
A JNode for types.
-
-
Field Summary
Fields Modifier and Type Field Description int
arrayCount
boolean
isPrimative
java.lang.String
name
-
Constructor Summary
Constructors Constructor Description JType()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object anObj)
Standard equals implementation.protected java.lang.String
getClassNameImpl()
Tries to resolve the class name for this node.protected java.lang.String
getNameImpl()
Resolves the type name.java.util.List<JNode>
getOthers()
Returns a list of all JTypes that match this JType.java.lang.String
getSimpleName()
Returns the simple name.int
hashCode()
Standard hashCode implementation.boolean
isArrayType()
Returns whether type is array.boolean
isReferenceType()
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
-
-
-
-
Method Detail
-
getNameImpl
protected java.lang.String getNameImpl()
Resolves the type name.- Overrides:
getNameImpl
in classJNode
-
getSimpleName
public java.lang.String 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
protected java.lang.String getClassNameImpl()
Tries to resolve the class name for this node.- Overrides:
getClassNameImpl
in classJNode
-
getOthers
public java.util.List<JNode> getOthers()
Returns a list of all JTypes that match this JType.
-
equals
public boolean equals(java.lang.Object anObj)
Standard equals implementation.- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
Standard hashCode implementation.- Overrides:
hashCode
in classjava.lang.Object
-
-