Package 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
,HasAttribute
,Member
Standard implementation of
Field
, which directly stores
all the associated data.-
Constructor Summary
ConstructorDescriptionStdField
(CstType definingClass, int accessFlags, CstNat nat, AttributeList attributes) Constructs an instance. -
Method Summary
Modifier and TypeMethodDescriptionGet the constant value for this field, if any.Methods inherited from class com.android.dx.cf.iface.StdMember
getAccessFlags, getAttributes, getDefiningClass, getDescriptor, getName, getNat, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.android.dx.cf.iface.Member
getAccessFlags, getAttributes, getDefiningClass, getDescriptor, getName, getNat
-
Constructor Details
-
StdField
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
-
-
Method Details
-
getConstantValue
Get the constant value for this field, if any. This only returns non-null
for astatic final
field which includes aConstantValue
attribute.- Specified by:
getConstantValue
in interfaceField
- Returns:
null-ok;
the constant value, ornull
if this field isn't a constant
-