FileDocCategorySizeDatePackage
FieldIdItem.javaAPI DocAndroid 5.1 API1863Thu Mar 12 22:18:30 GMT 2015com.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 {@code 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
{@code 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;