FileDocCategorySizeDatePackage
MethodIdItem.javaAPI DocAndroid 5.1 API1922Thu Mar 12 22:18:30 GMT 2015com.android.dexgen.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.dexgen.rop.cst.CstBaseMethodRef method)
Constructs an instance.

param
method {@code 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.dexgen.rop.cst.CstBaseMethodRefgetMethodRef()
Gets the method constant.

return
{@code 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;