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

MethodIdItem

public final class MethodIdItem extends MemberIdItem
Representation of a method reference inside a Dalvik file.

Fields Summary
Constructors Summary
public MethodIdItem(com.android.dx.rop.cst.CstBaseMethodRef method)
Constructs an instance.

param
method non-null; the constant for the method

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

        super.addContents(file);

        ProtoIdsSection protoIds = file.getProtoIds();
        protoIds.intern(getMethodRef().getPrototype());
    
public com.android.dx.rop.cst.CstBaseMethodRefgetMethodRef()
Gets the method constant.

return
non-null; the constant

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

        ProtoIdsSection protoIds = file.getProtoIds();
        return protoIds.indexOf(getMethodRef().getPrototype());
    
protected java.lang.StringgetTypoidName()
{@inheritDoc}

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

        return ItemType.TYPE_METHOD_ID_ITEM;