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

FieldIdItem

public final class FieldIdItem extends MemberIdItem
Representation of a field reference inside a Dalvik file.

Fields Summary
Constructors Summary
public FieldIdItem(com.android.dx.rop.cst.CstFieldRef field)
Constructs an instance.

param
field non-null; the constant for the field

        super(field);
    
Methods Summary
public voidaddContents(DexFile file)
{@inheritDoc}

        super.addContents(file);

        TypeIdsSection typeIds = file.getTypeIds();
        typeIds.intern(getFieldRef().getType());
    
public com.android.dx.rop.cst.CstFieldRefgetFieldRef()
Gets the field constant.

return
non-null; the constant

        return (CstFieldRef) getRef();
    
protected intgetTypoidIdx(DexFile file)
{@inheritDoc}

        TypeIdsSection typeIds = file.getTypeIds();
        return typeIds.indexOf(getFieldRef().getType());
    
protected java.lang.StringgetTypoidName()
{@inheritDoc}

        return "type_idx";
    
public ItemTypeitemType()
{@inheritDoc}

        return ItemType.TYPE_FIELD_ID_ITEM;