All Implemented Interfaces:
IDestructable, INdStruct

public class NdTypeId extends NdTypeSignature
  • Field Details

  • Constructor Details

    • NdTypeId

      public NdTypeId(Nd nd, long address)
    • NdTypeId

      public NdTypeId(Nd nd, char[] fieldDescriptor)
  • Method Details

    • getSubTypes

      public List<NdType> getSubTypes()
      Description copied from class: NdTypeSignature
      Returns all subclasses (for classes) and implementations (for interfaces) of this type
      Overrides:
      getSubTypes in class NdTypeSignature
    • getComplexTypes

      public List<NdComplexTypeSignature> getComplexTypes()
    • findTypeByResourceAddress

      public NdType findTypeByResourceAddress(long resourceAddress)
    • getTypes

      public List<NdType> getTypes()
    • getFieldDescriptor

      public IString getFieldDescriptor()
      Returns the field descriptor.
    • getFieldDescriptorWithoutTrailingSemicolon

      public char[] getFieldDescriptorWithoutTrailingSemicolon()
    • getBinaryName

      public char[] getBinaryName()
    • getSimpleName

      public IString getSimpleName()
    • getSimpleNameCharArray

      public char[] getSimpleNameCharArray()
    • hasFieldDescriptor

      public boolean hasFieldDescriptor(String name)
    • hasSimpleName

      public boolean hasSimpleName(String name)
    • setSimpleName

      public void setSimpleName(String name)
    • getDeclaredTypes

      public List<NdType> getDeclaredTypes()
    • getRawType

      public NdTypeId getRawType()
      Description copied from class: NdTypeSignature
      Returns the raw version of this type, if one exists. That is, the version of this type without any generic arguments or annotations, which the java runtime sees. Returns null of this signature doesn't have a raw type, for example if it is a type variable.
      Specified by:
      getRawType in class NdTypeSignature
    • getSignature

      public void getSignature(CharArrayBuffer result, boolean includeTrailingSemicolon)
      Specified by:
      getSignature in class NdTypeSignature
    • isTypeVariable

      public boolean isTypeVariable()
      Specified by:
      isTypeVariable in class NdTypeSignature
    • getDeclaringTypeChain

      public List<NdTypeSignature> getDeclaringTypeChain()
      Description copied from class: NdTypeSignature
      Returns the chain of declaring generic types. The first element in the chain is a top-level type and the receiver is the last element in the chain.
      Specified by:
      getDeclaringTypeChain in class NdTypeSignature
    • getArrayDimensionType

      public NdTypeSignature getArrayDimensionType()
      Description copied from class: NdTypeSignature
      If the receiver is an array type, it returns the signature of the array's next dimension. Returns null if this is not an array type.
      Specified by:
      getArrayDimensionType in class NdTypeSignature
    • getTypeArguments

      public List<NdTypeArgument> getTypeArguments()
      Description copied from class: NdTypeSignature
      Returns the type arguments for this type signature, if any. Returns the empty list if none.
      Specified by:
      getTypeArguments in class NdTypeSignature
    • isArrayType

      public boolean isArrayType()
      Description copied from class: NdTypeSignature
      Returns true iff this is an array type signature (ie: that getArrayDimensionType() will return a non-null answer). Note that this only returns true for the type signature that holds the reference to the array dimension type. The raw type for that signature will return false, even though it has a field descriptor starting with '['.

      In other words:

       NdVariable someVariable = getSomeVariableWithAnArrayType()
       System.out.println(someVariable.getType().isArrayType()); // true
       System.out.println(someVariable.getType().getRawType().isArrayType()); // false
       
      Specified by:
      isArrayType in class NdTypeSignature