com.android.dx.dex.file
Class IdItem

java.lang.Object
  extended by com.android.dx.dex.file.Item
      extended by com.android.dx.dex.file.IndexedItem
          extended by com.android.dx.dex.file.IdItem
Direct Known Subclasses:
MemberIdItem, TypeIdItem

public abstract class IdItem
extends IndexedItem

Representation of a reference to an item inside a Dalvik file.


Constructor Summary
IdItem(CstType type)
          Constructs an instance.
 
Method Summary
 void addContents(DexFile file)
          Populates a DexFile with items from within this instance.
 CstType getDefiningClass()
          Gets the type constant for the defining class of the reference.
 
Methods inherited from class com.android.dx.dex.file.IndexedItem
getIndex, hasIndex, indexString, setIndex
 
Methods inherited from class com.android.dx.dex.file.Item
itemType, typeName, writeSize, writeTo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IdItem

public IdItem(CstType type)
Constructs an instance.

Parameters:
type - non-null; the type constant for the defining class of the reference
Method Detail

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


Copyright © 2015. All rights reserved.