FileDocCategorySizeDatePackage
FieldListParser.javaAPI DocAndroid 1.5 API2575Wed May 06 22:41:02 BST 2009com.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
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 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);
        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
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;