Package com.android.dx.dex.file
Class MethodIdItem
java.lang.Object
com.android.dx.dex.file.Item
com.android.dx.dex.file.IndexedItem
com.android.dx.dex.file.IdItem
com.android.dx.dex.file.MemberIdItem
com.android.dx.dex.file.MethodIdItem
Representation of a method reference inside a Dalvik file.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addContents
(DexFile file) Populates aDexFile
with items from within this instance.Gets the method constant.protected int
getTypoidIdx
(DexFile file) Returns the index of the type-like thing associated with this item, in order that it may be written out.protected String
Returns the field name of the type-like thing associated with this item, for listing-generating purposes.itemType()
Returns the item type for this instance.Methods inherited from class com.android.dx.dex.file.MemberIdItem
getRef, writeSize, writeTo
Methods inherited from class com.android.dx.dex.file.IdItem
getDefiningClass
Methods inherited from class com.android.dx.dex.file.IndexedItem
getIndex, hasIndex, indexString, setIndex
-
Constructor Details
-
MethodIdItem
Constructs an instance.- Parameters:
method
-non-null;
the constant for the method
-
-
Method Details
-
itemType
Returns the item type for this instance. -
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.
- Overrides:
addContents
in classMemberIdItem
- Parameters:
file
-non-null;
the file to populate
-
getMethodRef
Gets the method constant.- Returns:
non-null;
the constant
-
getTypoidIdx
Returns the index of the type-like thing associated with this item, in order that it may be written out. Subclasses must override this to get whatever it is they need to store.- Specified by:
getTypoidIdx
in classMemberIdItem
- Parameters:
file
-non-null;
the file being written- Returns:
- the index in question
-
getTypoidName
Returns the field name of the type-like thing associated with this item, for listing-generating purposes. Subclasses must override this.- Specified by:
getTypoidName
in classMemberIdItem
- Returns:
non-null;
the name in question
-