Class DexBackedTypeReference

All Implemented Interfaces:
CharSequence, Comparable<CharSequence>, Reference, TypeReference

public class DexBackedTypeReference extends BaseTypeReference
  • Field Details

    • dexFile

      @Nonnull public final DexBackedDexFile dexFile
    • typeIndex

      public final int typeIndex
  • Constructor Details

    • DexBackedTypeReference

      public DexBackedTypeReference(@Nonnull DexBackedDexFile dexFile, int typeIndex)
  • Method Details

    • getType

      @Nonnull public String getType()
      Description copied from interface: TypeReference
      Gets the string representation of the referenced type. The returned string will be a TypeDescriptor, as defined in the dex file specification
      Returns:
      The string representation of the referenced type.
    • getSize

      public int getSize()
      Calculate and return the private size of a type reference. Calculated as: descriptor_idx
      Returns:
      size in bytes
    • validateReference

      public void validateReference() throws Reference.InvalidReferenceException
      Description copied from interface: Reference
      Verifies that this reference is valid.
      Specified by:
      validateReference in interface Reference
      Overrides:
      validateReference in class BaseReference
      Throws:
      Reference.InvalidReferenceException - If the reference is not valid.