FileDocCategorySizeDatePackage
IdItem.javaAPI DocAndroid 5.1 API1680Thu Mar 12 22:18:30 GMT 2015com.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
{@code 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 {@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.dx.rop.cst.CstTypegetDefiningClass()
Gets the type constant for the defining class of the reference.

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

        return type;