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
library.-
Uses of Annotation in java.lang.classfile
Modifier and TypeMethodDescriptionAnnotationValue.OfAnnotation.annotation()
Returns the annotation value.TypeAnnotation.annotation()
Returns the annotation applied to the part indicated byTypeAnnotation.targetPath()
.static Annotation
Annotation.of
(Utf8Entry annotationClass, AnnotationElement... elements) Returns an annotation.static Annotation
Annotation.of
(Utf8Entry annotationClass, List<AnnotationElement> elements) Returns an annotation.static Annotation
Annotation.of
(ClassDesc annotationClass, AnnotationElement... elements) Returns an annotation.static Annotation
Annotation.of
(ClassDesc annotationClass, List<AnnotationElement> elements) Returns an annotation.Modifier and TypeMethodDescriptionstatic TypeAnnotation
TypeAnnotation.of
(TypeAnnotation.TargetInfo targetInfo, List<TypeAnnotation.TypePathComponent> targetPath, Annotation annotation) Returns atype_annotation
structure.static AnnotationElement
AnnotationElement.ofAnnotation
(String name, Annotation value) Returns an element-value pair for an annotation-valued element.static AnnotationValue.OfAnnotation
AnnotationValue.ofAnnotation
(Annotation value) Returns an annotation value for an element-value pair. -
Uses of Annotation in java.lang.classfile.attribute
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
(Annotation... annotations) Returns aRuntimeInvisibleAnnotations
attribute.RuntimeVisibleAnnotationsAttribute.of
(Annotation... annotations) Returns aRuntimeVisibleAnnotations
attribute.Modifier and TypeMethodDescriptionRuntimeInvisibleAnnotationsAttribute.of
(List<Annotation> annotations) Returns aRuntimeInvisibleAnnotations
attribute.RuntimeInvisibleParameterAnnotationsAttribute.of
(List<List<Annotation>> parameterAnnotations) Returns aRuntimeInvisibleParameterAnnotations
attribute.RuntimeVisibleAnnotationsAttribute.of
(List<Annotation> annotations) Returns aRuntimeVisibleAnnotations
attribute.RuntimeVisibleParameterAnnotationsAttribute.of
(List<List<Annotation>> parameterAnnotations) Returns aRuntimeVisibleParameterAnnotations
attribute.