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 TypeMethodDescriptionAnnotationValue.OfAnnotation.annotation()
Returns the annotation value.TypeAnnotation.annotation()
Returns the annotation applied to the part indicated byTypeAnnotation.targetPath()
PREVIEW.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 TypeAnnotationPREVIEW
TypeAnnotation.of
(TypeAnnotation.TargetInfoPREVIEW targetInfo, List<TypeAnnotation.TypePathComponentPREVIEW> targetPath, AnnotationPREVIEW annotation) Returns atype_annotation
structure.static AnnotationElementPREVIEW
AnnotationElement.ofAnnotation
(String name, AnnotationPREVIEW value) Returns an element-value pair for an annotation-valued element.AnnotationValue.ofAnnotation
(AnnotationPREVIEW value) Returns an annotation value for an element-value pair. -
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.