Constructor and Description |
---|
StdField(CstType definingClass,
int accessFlags,
CstNat nat,
AttributeList attributes)
Constructs an instance.
|
Modifier and Type | Method and Description |
---|---|
TypedConstant |
getConstantValue()
Get the constant value for this field, if any.
|
getAccessFlags, getAttributes, getDefiningClass, getDescriptor, getName, getNat, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getAccessFlags, getAttributes, getDefiningClass, getDescriptor, getName, getNat
public StdField(CstType definingClass, int accessFlags, CstNat nat, AttributeList attributes)
definingClass
- non-null;
the defining classaccessFlags
- access flagsnat
- non-null;
member name and type (descriptor)attributes
- non-null;
list of associated attributespublic TypedConstant getConstantValue()
null
for a static final
field which
includes a ConstantValue
attribute.getConstantValue
in interface Field
null-ok;
the constant value, or null
if this
field isn't a constant