FileDocCategorySizeDatePackage
StdField.javaAPI DocAndroid 1.5 API1809Wed May 06 22:41:02 BST 2009com.android.dx.cf.iface

StdField

public final class StdField extends StdMember implements Field
Standard implementation of {@link Field}, which directly stores all the associated data.

Fields Summary
Constructors Summary
public StdField(com.android.dx.rop.cst.CstType definingClass, int accessFlags, com.android.dx.rop.cst.CstNat nat, AttributeList attributes)
Constructs an instance.

param
definingClass non-null; the defining class
param
accessFlags access flags
param
nat non-null; member name and type (descriptor)
param
attributes non-null; list of associated attributes

        super(definingClass, accessFlags, nat, attributes);
    
Methods Summary
public com.android.dx.rop.cst.TypedConstantgetConstantValue()
{@inheritDoc}

        AttributeList attribs = getAttributes();
        AttConstantValue cval = (AttConstantValue)
            attribs.findFirst(AttConstantValue.ATTRIBUTE_NAME);

        if (cval == null) {
            return null;
        }

        return cval.getConstantValue();