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

public final Class MethodIdItem

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

Representation of a method reference inside a Dalvik file.

Constructor Summary

AccessConstructor and Description
public
MethodIdItem(CstBaseMethodRef
non-null; the constant for the method
method
)

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 CstBaseMethodRef

Returns:

non-null; the constant
getMethodRef
()

Gets the method 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

MethodIdItemback to summary
public MethodIdItem(CstBaseMethodRef method)

Constructs an instance.

Parameters
method:CstBaseMethodRef

non-null; the constant for the method

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
getMethodRefback to summary
public CstBaseMethodRef getMethodRef()

Gets the method constant.

Returns:CstBaseMethodRef

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