Interface AnnotationValue.OfBoolean
- All Superinterfaces:
AnnotationValuePREVIEW
,AnnotationValue.OfConstantPREVIEW
- Enclosing interface:
AnnotationValuePREVIEW
OfBoolean
is a preview API of the Java platform.
Preview features may be removed in a future release, or upgraded to permanent features of the Java platform.
- Since:
- 22
-
Nested Class Summary
Nested classes/interfaces declared in interface java.lang.classfile.AnnotationValuePREVIEW
AnnotationValue.OfAnnotationPREVIEW, AnnotationValue.OfArrayPREVIEW, AnnotationValue.OfBooleanPREVIEW, AnnotationValue.OfBytePREVIEW, AnnotationValue.OfCharPREVIEW, AnnotationValue.OfClassPREVIEW, AnnotationValue.OfConstantPREVIEW, AnnotationValue.OfDoublePREVIEW, AnnotationValue.OfEnumPREVIEW, AnnotationValue.OfFloatPREVIEW, AnnotationValue.OfIntPREVIEW, AnnotationValue.OfLongPREVIEW, AnnotationValue.OfShortPREVIEW, AnnotationValue.OfStringPREVIEW
-
Field Summary
Fields declared in interface java.lang.classfile.AnnotationValuePREVIEW
TAG_ANNOTATION, TAG_ARRAY, TAG_BOOLEAN, TAG_BYTE, TAG_CHAR, TAG_CLASS, TAG_DOUBLE, TAG_ENUM, TAG_FLOAT, TAG_INT, TAG_LONG, TAG_SHORT, TAG_STRING
-
Method Summary
Methods declared in interface java.lang.classfile.AnnotationValuePREVIEW
tag
-
Method Details
-
constant
IntegerEntryPREVIEW constant()Returns the backing integer entry.- Specified by:
constant
in interfaceAnnotationValue.OfConstantPREVIEW
- Returns:
- the backing integer entry
-
booleanValue
boolean booleanValue()Returns the constant boolean value.- Returns:
- the constant boolean value
- See Java Virtual Machine Specification:
-
2.3.4 The boolean Type
-
resolvedValue
Returns the resolved boolean value.- Specified by:
resolvedValue
in interfaceAnnotationValue.OfConstantPREVIEW
- Implementation Requirements:
- This method returns the same as
booleanValue()
. - Returns:
- the resolved boolean value
-
OfBoolean
when preview features are enabled.