Top Description Constructors Methods
org.droidparts.dexmaker.dx.dex.file

public final Class FieldIdItem

extends MemberIdItem
Class Inheritance
Imports
org.droidparts.dexmaker.dx.rop.cst.CstFieldRef

Representation of a field reference inside a Dalvik file.

Constructor Summary

AccessConstructor and Description
public
FieldIdItem(CstFieldRef
non-null; the constant for the field
field
)

Constructs an instance.

Method Summary

Modifier and TypeMethod and Description
public void
addContents(DexFile
non-null; the file to populate
file
)

Overrides org.droidparts.dexmaker.dx.dex.file.MemberIdItem.addContents.

Populates a DexFile with items from within this instance.
public CstFieldRef

Returns:

non-null; the constant
getFieldRef
()

Gets the field constant.

protected int
getTypoidIdx(DexFile
non-null; the file being written
file
)

Implements abstract org.droidparts.dexmaker.dx.dex.file.MemberIdItem.getTypoidIdx.

Returns the index of the type-like thing associated with this item, in order that it may be written out.
protected String
getTypoidName()

Implements abstract org.droidparts.dexmaker.dx.dex.file.MemberIdItem.getTypoidName.

Returns the field name of the type-like thing associated with this item, for listing-generating purposes.
public ItemType
itemType()

Implements abstract org.droidparts.dexmaker.dx.dex.file.Item.itemType.

Returns the item type for this instance.
Inherited from org.droidparts.dexmaker.dx.dex.file.MemberIdItem:
getRefwriteSizewriteTo

Constructor Detail

FieldIdItemback to summary
public FieldIdItem(CstFieldRef field)

Constructs an instance.

Parameters
field:CstFieldRef

non-null; the constant for the field

Method Detail

addContentsback to summary
public void addContents(DexFile file)

Overrides org.droidparts.dexmaker.dx.dex.file.MemberIdItem.addContents.

Doc from org.droidparts.dexmaker.dx.dex.file.MemberIdItem.addContents.

Populates a 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.

Parameters
file:DexFile

Doc from org.droidparts.dexmaker.dx.dex.file.Item.addContents.

non-null; the file to populate

Annotations
@Override
getFieldRefback to summary
public CstFieldRef getFieldRef()

Gets the field constant.

Returns:CstFieldRef

non-null; the constant

getTypoidIdxback to summary
protected int getTypoidIdx(DexFile file)

Implements abstract org.droidparts.dexmaker.dx.dex.file.MemberIdItem.getTypoidIdx.

Doc from org.droidparts.dexmaker.dx.dex.file.MemberIdItem.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.

Parameters
file:DexFile

non-null; the file being written

Returns:int

the index in question

Annotations
@Override
getTypoidNameback to summary
protected String getTypoidName()

Implements abstract org.droidparts.dexmaker.dx.dex.file.MemberIdItem.getTypoidName.

Doc from org.droidparts.dexmaker.dx.dex.file.MemberIdItem.getTypoidName.

Returns the field name of the type-like thing associated with this item, for listing-generating purposes. Subclasses must override this.

Returns:String

non-null; the name in question

Annotations
@Override
itemTypeback to summary
public ItemType itemType()

Implements abstract org.droidparts.dexmaker.dx.dex.file.Item.itemType.

Doc from org.droidparts.dexmaker.dx.dex.file.Item.itemType.

Returns the item type for this instance.

Returns:ItemType

non-null; the item type

Annotations
@Override