java.lang.Object
com.inductiveautomation.snap.javatree.JNode
com.inductiveautomation.snap.javatree.JType

public class JType extends JNode
A JNode for types.
  • Field Details

    • isPrimative

      public boolean isPrimative
    • arrayCount

      public int arrayCount
    • name

      public String name
  • Constructor Details

    • JType

      public JType()
  • Method Details

    • getNameImpl

      protected String getNameImpl()
      Resolves the type name.
      Overrides:
      getNameImpl in class JNode
    • getSimpleName

      public 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 String getClassNameImpl()
      Tries to resolve the class name for this node.
      Overrides:
      getClassNameImpl in class JNode
    • getOthers

      public List<JNode> getOthers()
      Returns a list of all JTypes that match this JType.
      Overrides:
      getOthers in class JNode
    • equals

      public boolean equals(Object anObj)
      Standard equals implementation.
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Standard hashCode implementation.
      Overrides:
      hashCode in class Object