Preview
Second Preview of ClassFile API (JEP 466).
Programs can only use ConstantValueEntry
when preview features are enabled.
Preview features may be removed in a future release,
or upgraded to permanent features of the Java platform.
ConstantValue
attribute; this includes the four primitive constant
types and String constants.
Modifier and Type | Method and Description |
---|---|
public ConstantDesc | Returns: the constant valueRedeclares java. Returns the constant value. |
constantValue | back to summary |
---|---|
public ConstantDesc constantValue() Redeclares java. Returns the constant value. The constant value will be an
|