FileDocCategorySizeDatePackage
FieldListParser.javaAPI DocAndroid 5.1 API2608Thu Mar 12 22:18:30 GMT 2015com.android.dx.cf.direct

FieldListParser

public final class FieldListParser extends MemberListParser
Parser for lists of fields in a class file.

Fields Summary
private final com.android.dx.cf.iface.StdFieldList
fields
{@code non-null;} list in progress
Constructors Summary
public FieldListParser(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);
        fields = new StdFieldList(getCount());
    
Methods Summary
protected intgetAttributeContext()
{@inheritDoc}

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

return
{@code non-null;} the parsed list

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

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

        return "field";
    
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}

        StdField field =
            new StdField(getDefiner(), accessFlags, nat, attributes);

        fields.set(n, field);
        return field;