com.android.dx.cf.iface
Class StdField

java.lang.Object
  extended by com.android.dx.cf.iface.StdMember
      extended by 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.


Constructor Summary
StdField(CstType definingClass, int accessFlags, CstNat nat, AttributeList attributes)
          Constructs an instance.
 
Method Summary
 TypedConstant getConstantValue()
          Get 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 Detail

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 Detail

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.