FileDocCategorySizeDatePackage
IdItem.javaAPI DocAndroid 1.5 API1659Wed May 06 22:41:02 BST 2009com.android.dx.dex.file

IdItem

public abstract class IdItem extends IndexedItem
Representation of a reference to an item inside a Dalvik file.

Fields Summary
private final com.android.dx.rop.cst.CstType
type
non-null; the type constant for the defining class of the reference
Constructors Summary
public IdItem(com.android.dx.rop.cst.CstType type)
Constructs an instance.

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

        if (type == null) {
            throw new NullPointerException("type == null");
        }

        this.type = type;
    
Methods Summary
public voidaddContents(DexFile file)
{@inheritDoc}

        TypeIdsSection typeIds = file.getTypeIds();
        typeIds.intern(type);
    
public final com.android.dx.rop.cst.CstTypegetDefiningClass()
Gets the type constant for the defining class of the reference.

return
non-null; the type constant

        return type;