Package 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
Representation of a reference to an item inside a Dalvik file.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addContents
(DexFile file) Populates aDexFile
with items from within this instance.final CstType
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
-
Constructor Details
-
IdItem
Constructs an instance.- Parameters:
type
-non-null;
the type constant for the defining class of the reference
-
-
Method Details
-
addContents
Populates aDexFile
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 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
-