Class JType


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

      • isPrimative

        public boolean isPrimative
      • arrayCount

        public int arrayCount
      • name

        public java.lang.String name
    • Constructor Detail

      • JType

        public JType()
    • Method Detail

      • getNameImpl

        protected java.lang.String getNameImpl()
        Resolves the type name.
        Overrides:
        getNameImpl in class JNode
      • 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 class JNode
      • getOthers

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

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

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