Module java.base

Interface Annotation

All Superinterfaces:
ClassFileElementPREVIEW, WritableElementPREVIEW<AnnotationPREVIEW>
All Known Subinterfaces:
TypeAnnotationPREVIEW

public sealed interface Annotation extends WritableElementPREVIEW<AnnotationPREVIEW> permits TypeAnnotationPREVIEW (not exhaustive)
Annotation is a preview API of the Java platform.
Programs can only use Annotation 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 on a declaration.
Sealed Class Hierarchy Graph:
Sealed class hierarchy graph for AnnotationSealed class hierarchy graph for Annotation
Since:
22
See Also: