Class IdItem

Direct Known Subclasses:
MemberIdItem, TypeIdItem

public abstract class IdItem extends IndexedItem
Representation of a reference to an item inside a Dalvik file.
  • Constructor Details

    • IdItem

      public IdItem(CstType type)
      Constructs an instance.
      Parameters:
      type - non-null; the type constant for the defining class of the reference
  • Method Details

    • addContents

      public void addContents(DexFile file)
      Populates a DexFile with items from within this instance. This will not add an item to the file for this instance itself (which should have been done by whatever refers to this instance).

      Note: Subclasses must override this to do something appropriate.

      Specified by:
      addContents in class Item
      Parameters:
      file - non-null; the file to populate
    • getDefiningClass

      public final CstType getDefiningClass()
      Gets the type constant for the defining class of the reference.
      Returns:
      non-null; the type constant