Class StdField

java.lang.Object
com.android.dx.cf.iface.StdMember
com.android.dx.cf.iface.StdField
All Implemented Interfaces:
Field, HasAttribute, Member

public final class StdField extends StdMember implements Field
Standard implementation of Field, which directly stores all the associated data.
  • Constructor Details

    • StdField

      public StdField(CstType definingClass, int accessFlags, CstNat nat, AttributeList attributes)
      Constructs an instance.
      Parameters:
      definingClass - non-null; the defining class
      accessFlags - access flags
      nat - non-null; member name and type (descriptor)
      attributes - non-null; list of associated attributes
  • Method Details

    • getConstantValue

      public TypedConstant getConstantValue()
      Get the constant value for this field, if any. This only returns non-null for a static final field which includes a ConstantValue attribute.
      Specified by:
      getConstantValue in interface Field
      Returns:
      null-ok; the constant value, or null if this field isn't a constant