FileDocCategorySizeDatePackage
IdItem.javaAPI DocAndroid 5.1 API1688Thu Mar 12 22:18:30 GMT 2015com.android.dexgen.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.dexgen.rop.cst.CstType
type
{@code non-null;} the type constant for the defining class of the reference
Constructors Summary
public IdItem(com.android.dexgen.rop.cst.CstType type)
Constructs an instance.

param
type {@code 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.dexgen.rop.cst.CstTypegetDefiningClass()
Gets the type constant for the defining class of the reference.

return
{@code non-null;} the type constant

        return type;