VariableElement
Interface VariableElement
- All Superinterfaces:
- AnnotatedConstruct, Element
public interface VariableElement extends Element
Represents a field, enum
constant, method or constructor parameter, local variable, resource variable, or exception parameter.
- Since:
- 1.6
Methods
getConstantValue
Object getConstantValue()
Returns the value of this variable if this is a final
field initialized to a compile-time constant. Returns null
otherwise. The value will be of a primitive type or a String
. If the value is of a primitive type, it is wrapped in the appropriate wrapper