All Implemented Interfaces:
IDestructable, INdStruct, org.eclipse.core.runtime.IAdaptable

public class NdType extends NdBinding
  • Field Details

  • Constructor Details

    • NdType

      public NdType(Nd nd, long address)
    • NdType

      public NdType(Nd nd, NdResourceFile resource)
  • Method Details

    • getTypeId

      public NdTypeId getTypeId()
    • setTypeId

      public void setTypeId(NdTypeId typeId)
    • setFile

      public void setFile(NdResourceFile file)
    • getFile

      public NdResourceFile getFile()
    • setSourceNameOverride

      public void setSourceNameOverride(char[] sourceName)
      Sets the source name for this type.
    • getSourceNameOverride

      public IString getSourceNameOverride()
    • getResourceAddress

      public long getResourceAddress()
    • setSuperclass

      public void setSuperclass(NdTypeSignature superclassTypeName)
    • getSuperclass

      public NdTypeSignature getSuperclass()
    • getInterfaces

      public List<NdTypeInterface> getInterfaces()
    • getResourceFile

      public NdResourceFile getResourceFile()
    • setDeclaringType

      public void setDeclaringType(NdTypeId createTypeIdFromBinaryName)
      Parameters:
      createTypeIdFromBinaryName -
    • getDeclaringType

      public NdTypeId getDeclaringType()
    • setMissingTypeNames

      public void setMissingTypeNames(char[] contents)
      Sets the missing type names (if any) for this class. The names are encoded in a comma-separated list.
    • getMissingTypeNames

      public IString getMissingTypeNames()
      Returns the missing type names as a comma-separated list
    • setSourceFileName

      public void setSourceFileName(char[] sourceFileName)
    • getSourceFileName

      public IString getSourceFileName()
    • setAnonymous

      public void setAnonymous(boolean anonymous)
    • setIsLocal

      public void setIsLocal(boolean local)
    • setIsMember

      public void setIsMember(boolean member)
    • isAnonymous

      public boolean isAnonymous()
    • isLocal

      public boolean isLocal()
    • isMember

      public boolean isMember()
    • setFlag

      public void setFlag(byte flagConstant, boolean value)
    • getFlag

      public boolean getFlag(byte flagConstant)
    • getSourceName

      public char[] getSourceName()
    • getVariables

      public List<NdVariable> getVariables()
    • getTypeParameters

      public List<NdTypeParameter> getTypeParameters()
      Overrides:
      getTypeParameters in class NdBinding
    • getTypeAnnotations

      public List<NdTypeAnnotation> getTypeAnnotations()
    • getAnnotations

      public List<NdAnnotation> getAnnotations()
    • createAnnotation

      public NdAnnotation createAnnotation()
    • allocateAnnotations

      public void allocateAnnotations(int length)
    • getMethods

      public List<NdMethod> getMethods()
      Returns the list of methods, sorted by ascending method name (selector + descriptor).
    • getMethodsInDeclarationOrder

      public List<NdMethod> getMethodsInDeclarationOrder()
      Returns the list of methods, in declaration order.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • setTagBits

      public void setTagBits(long tagBits)
    • getTagBits

      public long getTagBits()
    • setFieldDescriptorFromClass

      public void setFieldDescriptorFromClass(char[] fieldDescriptorFromClass)
    • getFieldDescriptor

      public IString getFieldDescriptor()
      Returns the field descriptor for this type, based on the binary type information stored in the .class file itself. Note that this may differ from the field descriptor of this type's typeId in the event that the .class file has been moved.
    • createTypeAnnotation

      public NdTypeAnnotation createTypeAnnotation()
    • allocateTypeAnnotations

      public void allocateTypeAnnotations(int length)
    • createVariable

      public NdVariable createVariable()
    • allocateVariables

      public void allocateVariables(int length)
    • allocateMethods

      public void allocateMethods(int length)
    • createMethod

      public NdMethod createMethod()
    • setDeclaringMethod

      public void setDeclaringMethod(char[] enclosingMethod)
    • getDeclaringMethod

      public IString getDeclaringMethod()