com.android.dx.dex.file
Class IdItem
java.lang.Object
com.android.dx.dex.file.Item
com.android.dx.dex.file.IndexedItem
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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IdItem
public IdItem(CstType type)
- Constructs an instance.
- Parameters:
type - non-null; the type constant for the defining
class of the reference
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.