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
Representation of a reference to an item inside a Dalvik file.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddContents(DexFile file) Populates aDexFilewith items from within this instance.final CstTypeGets the type constant for the defining class of the reference.Methods inherited from class IndexedItem
getIndex, hasIndex, indexString, setIndex
-
Constructor Details
-
IdItem
Constructs an instance.- Parameters:
type-non-null;the type constant for the defining class of the reference
-
-
Method Details
-
addContents
Populates aDexFilewith 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:
addContentsin classItem- Parameters:
file-non-null;the file to populate
-
getDefiningClass
Gets the type constant for the defining class of the reference.- Returns:
non-null;the type constant
-