Class StdField
java.lang.Object
com.android.dx.cf.iface.StdMember
com.android.dx.cf.iface.StdField
- All Implemented Interfaces:
Field, HasAttribute, Member
-
Constructor Summary
ConstructorsConstructorDescriptionStdField(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 StdMember
getAccessFlags, getAttributes, getDefiningClass, getDescriptor, getName, getNat, toStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface 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-nullfor astatic finalfield which includes aConstantValueattribute.- Specified by:
getConstantValuein interfaceField- Returns:
null-ok;the constant value, ornullif this field isn't a constant
-