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

public abstract Class IdItem

extends IndexedItem
Class Inheritance
Known Direct Subclasses
org.droidparts.dexmaker.dx.dex.file.MemberIdItem, org.droidparts.dexmaker.dx.dex.file.TypeIdItem
Imports
org.droidparts.dexmaker.dx.rop.cst.CstType

Representation of a reference to an item inside a Dalvik file.

Field Summary

Modifier and TypeField and Description
private final CstType
type

non-null; the type constant for the defining class of the reference

Constructor Summary

AccessConstructor and Description
public
IdItem(CstType
non-null; the type constant for the defining class of the reference
type
)

Constructs an instance.

Method Summary

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

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

Populates a DexFile with items from within this instance.
public final CstType

Returns:

non-null; the type constant
getDefiningClass
()

Gets the type constant for the defining class of the reference.

Inherited from org.droidparts.dexmaker.dx.dex.file.IndexedItem:
getIndexhasIndexindexStringsetIndex

Field Detail

typeback to summary
private final CstType type

non-null; the type constant for the defining class of the reference

Constructor Detail

IdItemback to summary
public IdItem(CstType type)

Constructs an instance.

Parameters
type:CstType

non-null; the type constant for the defining class of the reference

Method Detail

addContentsback to summary
public void addContents(DexFile file)

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

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

non-null; the file to populate

Annotations
@Override
getDefiningClassback to summary
public final CstType getDefiningClass()

Gets the type constant for the defining class of the reference.

Returns:CstType

non-null; the type constant