public final class FieldIdItem extends MemberIdItem
| Constructor and Description |
|---|
FieldIdItem(CstFieldRef field)
Constructs an instance.
|
| Modifier and Type | Method and Description |
|---|---|
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 java.lang.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.
|
getRef, writeSize, writeTogetDefiningClassgetIndex, hasIndex, indexString, setIndexpublic FieldIdItem(CstFieldRef field)
field - non-null; the constant for the fieldpublic ItemType itemType()
public 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 writtenprotected java.lang.String getTypoidName()
getTypoidName in class MemberIdItemnon-null; the name in questionCopyright © 2020. All Rights Reserved.