FileDocCategorySizeDatePackage
MethodListParser.javaAPI DocAndroid 5.1 API2622Thu Mar 12 22:18:30 GMT 2015com.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
{@code 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 {@code non-null;} the class file to parse from
param
definer {@code non-null;} class being defined
param
offset offset in {@code bytes} to the start of the list
param
attributeFactory {@code 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
{@code 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;