Uses of Interface
java.lang.classfile.Annotation
Packages that use AnnotationPREVIEW
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
Methods in java.lang.classfilePREVIEW that return AnnotationPREVIEWModifier 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.Methods in java.lang.classfilePREVIEW with parameters of type AnnotationPREVIEWModifier 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
Methods in java.lang.classfile.attributePREVIEW that return types with arguments of type AnnotationPREVIEWModifier 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.Methods in java.lang.classfile.attributePREVIEW with parameters of type AnnotationPREVIEWModifier and TypeMethodDescriptionRuntimeInvisibleAnnotationsAttribute.of
(AnnotationPREVIEW... annotations) Returns aRuntimeInvisibleAnnotations
attribute.RuntimeVisibleAnnotationsAttribute.of
(AnnotationPREVIEW... annotations) Returns aRuntimeVisibleAnnotations
attribute.Method parameters in java.lang.classfile.attributePREVIEW with type arguments of type AnnotationPREVIEWModifier 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.