Interface Field

All Superinterfaces:
HasAttribute, Member
All Known Implementing Classes:
StdField

public interface Field extends Member
Interface representing fields of class files.
  • Method Details

    • getConstantValue

      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.
      Returns:
      null-ok; the constant value, or null if this field isn't a constant