Uses of Interface
java.lang.classfile.Annotation
Package
Description
Provides classfile parsing, generation, and transformation library.
Provides interfaces describing classfile attributes for the
java.lang.classfile
PREVIEW library.-
Uses of AnnotationPREVIEW in java.lang.classfilePREVIEW
Modifier and TypeInterfaceDescriptioninterface
Modifier and TypeInterfaceDescriptioninterface
Preview.Models an annotation on a declaration.Modifier and TypeMethodDescriptionAnnotationValue.OfAnnotation.annotation()
Returns the annotation.static AnnotationPREVIEW
Annotation.of
(Utf8EntryPREVIEW annotationClass, AnnotationElementPREVIEW... elements) Returns an annotation.static AnnotationPREVIEW
Returns an annotation.static AnnotationPREVIEW
Annotation.of
(ClassDesc annotationClass, AnnotationElementPREVIEW... elements) Returns an annotation.static AnnotationPREVIEW
Annotation.of
(ClassDesc annotationClass, List<AnnotationElementPREVIEW> elements) Returns an annotation.Modifier and TypeMethodDescriptionstatic AnnotationElementPREVIEW
AnnotationElement.ofAnnotation
(String name, AnnotationPREVIEW value) Returns an annotation key-value pair for an annotation-valued annotation.AnnotationValue.ofAnnotation
(AnnotationPREVIEW value) Returns an annotation element for an annotation-valued element. -
Uses of AnnotationPREVIEW in java.lang.classfile.attributePREVIEW
Modifier and TypeMethodDescriptionRuntimeInvisibleAnnotationsAttribute.annotations()
Returns the non-runtime-visible annotations on this class, field, or method.RuntimeVisibleAnnotationsAttribute.annotations()
Returns the runtime-visible annotations on this class, field, or method.RuntimeInvisibleParameterAnnotationsAttribute.parameterAnnotations()
Returns the list of annotations corresponding to each method parameter.RuntimeVisibleParameterAnnotationsAttribute.parameterAnnotations()
Returns the list of annotations corresponding to each method parameter.Modifier and TypeMethodDescriptionRuntimeInvisibleAnnotationsAttribute.of
(AnnotationPREVIEW... annotations) Returns aRuntimeInvisibleAnnotations
attribute.RuntimeVisibleAnnotationsAttribute.of
(AnnotationPREVIEW... annotations) Returns aRuntimeVisibleAnnotations
attribute.Modifier and TypeMethodDescriptionRuntimeInvisibleAnnotationsAttribute.of
(List<AnnotationPREVIEW> annotations) Returns aRuntimeInvisibleAnnotations
attribute.RuntimeInvisibleParameterAnnotationsAttribute.of
(List<List<AnnotationPREVIEW>> parameterAnnotations) Returns aRuntimeInvisibleParameterAnnotations
attribute.RuntimeVisibleAnnotationsAttribute.of
(List<AnnotationPREVIEW> annotations) Returns aRuntimeVisibleAnnotations
attribute.RuntimeVisibleParameterAnnotationsAttribute.of
(List<List<AnnotationPREVIEW>> parameterAnnotations) Returns aRuntimeVisibleParameterAnnotations
attribute.