FileDocCategorySizeDatePackage
MethodListParser.javaAPI DocAndroid 1.5 API2589Wed May 06 22:41:02 BST 2009com.android.dx.cf.direct

MethodListParser

public final class MethodListParser extends MemberListParser
Parser for lists of methods in a class file.

Fields Summary
private final com.android.dx.cf.iface.StdMethodList
methods
non-null; list in progress
Constructors Summary
public MethodListParser(DirectClassFile cf, com.android.dx.rop.cst.CstType definer, int offset, AttributeFactory attributeFactory)
Constructs an instance.

param
cf non-null; the class file to parse from
param
definer non-null; class being defined
param
offset offset in bytes to the start of the list
param
attributeFactory non-null; attribute factory to use

        super(cf, definer, offset, attributeFactory);
        methods = new StdMethodList(getCount());
    
Methods Summary
protected intgetAttributeContext()
{@inheritDoc}

        return AttributeFactory.CTX_METHOD;
    
public com.android.dx.cf.iface.StdMethodListgetList()
Gets the parsed list.

return
non-null; the parsed list

        parseIfNecessary();
        return methods;
    
protected java.lang.StringhumanAccessFlags(int accessFlags)
{@inheritDoc}

        return AccessFlags.methodString(accessFlags);
    
protected java.lang.StringhumanName()
{@inheritDoc}

        return "method";
    
protected com.android.dx.cf.iface.Memberset(int n, int accessFlags, com.android.dx.rop.cst.CstNat nat, com.android.dx.cf.iface.AttributeList attributes)
{@inheritDoc}

        StdMethod meth =
            new StdMethod(getDefiner(), accessFlags, nat, attributes);

        methods.set(n, meth);
        return meth;