Interface AnnotationValue.OfString
- All Superinterfaces:
AnnotationValuePREVIEW,AnnotationValue.OfConstantPREVIEW
- Enclosing interface:
AnnotationValuePREVIEW
OfString 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 -
Method Summary
Methods declared in interface java.lang.classfile.AnnotationValuePREVIEW
tag
-
Method Details
-
constant
Returns the backing UTF8 entry.- Specified by:
constantin interfaceAnnotationValue.OfConstantPREVIEW- Returns:
- the backing UTF8 entry
-
stringValue
-
resolvedValue
Returns the resolved string value.- Specified by:
resolvedValuein interfaceAnnotationValue.OfConstantPREVIEW- Implementation Requirements:
- This method returns the same as
stringValue(). - Returns:
- the resolved string value
-
OfStringwhen preview features are enabled.