|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.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.FieldIdItem
public final class FieldIdItem
Representation of a field reference inside a Dalvik file.
| Constructor Summary | |
|---|---|
FieldIdItem(CstFieldRef field)
Constructs an instance. |
|
| Method Summary | |
|---|---|
void |
addContents(DexFile file)
Populates a DexFile with items from within this instance. |
CstFieldRef |
getFieldRef()
Gets the field 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 |
getTypoidName()
Returns the field name of the type-like thing associated with this item, for listing-generating purposes. |
ItemType |
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 |
| Methods inherited from class com.android.dx.dex.file.Item |
|---|
typeName |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FieldIdItem(CstFieldRef field)
field - non-null; the constant for the field| Method Detail |
|---|
public ItemType itemType()
itemType in class Itemnon-null; the item typepublic void addContents(DexFile file)
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.
addContents in class MemberIdItemfile - non-null; the file to populatepublic CstFieldRef getFieldRef()
non-null; the constantprotected int getTypoidIdx(DexFile file)
getTypoidIdx in class MemberIdItemfile - non-null; the file being written
protected String getTypoidName()
getTypoidName in class MemberIdItemnon-null; the name in question
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||