Interface AnnotationValue.OfAnnotation

All Superinterfaces:
AnnotationValuePREVIEW, ClassFileElementPREVIEW, WritableElementPREVIEW<AnnotationValuePREVIEW>
Enclosing interface:
AnnotationValuePREVIEW

public static sealed interface AnnotationValue.OfAnnotation extends AnnotationValuePREVIEW
OfAnnotation is a preview API of the Java platform.
Programs can only use OfAnnotation when preview features are enabled.
Preview features may be removed in a future release, or upgraded to permanent features of the Java platform.
Models an annotation-valued element
Since:
22
  • Method Details

    • annotation

      AnnotationPREVIEW annotation()
      Returns the annotation.
      Returns:
      the annotation