com.android.dx.cf.iface
Class StdField
java.lang.Object
com.android.dx.cf.iface.StdMember
com.android.dx.cf.iface.StdField
- All Implemented Interfaces:
- Field, Member
public final class StdField
- extends StdMember
- implements Field
Standard implementation of Field, which directly stores
all the associated data.
StdField
public StdField(CstType definingClass,
int accessFlags,
CstNat nat,
AttributeList attributes)
- Constructs an instance.
- Parameters:
definingClass - non-null; the defining classaccessFlags - access flagsnat - non-null; member name and type (descriptor)attributes - non-null; list of associated attributes
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
Copyright © 2015. All rights reserved.