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 intarrayCountbooleanisPrimativejava.lang.Stringname
-
Constructor Summary
Constructors Constructor Description JType()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object anObj)Standard equals implementation.protected java.lang.StringgetClassNameImpl()Tries to resolve the class name for this node.protected java.lang.StringgetNameImpl()Resolves the type name.java.util.List<JNode>getOthers()Returns a list of all JTypes that match this JType.java.lang.StringgetSimpleName()Returns the simple name.inthashCode()Standard hashCode implementation.booleanisArrayType()Returns whether type is array.booleanisReferenceType()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:
getNameImplin 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:
getClassNameImplin 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:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
Standard hashCode implementation.- Overrides:
hashCodein classjava.lang.Object
-
-