Uses of Interface
java.lang.classfile.Annotation
Packages that use Annotation
Package
Description
Provides classfile parsing, generation, and transformation library.
Provides interfaces describing
class file attributes for the java.lang.classfile library.-
Uses of Annotation in java.lang.classfile
Methods in java.lang.classfile that return AnnotationModifier and TypeMethodDescriptionAnnotationValue.OfAnnotation.annotation()Returns the annotation value.TypeAnnotation.annotation()Returns the annotation applied to the part indicated byTypeAnnotation.targetPath().static AnnotationAnnotation.of(Utf8Entry annotationClass, AnnotationElement... elements) Returns an annotation.static AnnotationAnnotation.of(Utf8Entry annotationClass, List<AnnotationElement> elements) Returns an annotation.static AnnotationAnnotation.of(ClassDesc annotationClass, AnnotationElement... elements) Returns an annotation.static AnnotationAnnotation.of(ClassDesc annotationClass, List<AnnotationElement> elements) Returns an annotation.Methods in java.lang.classfile with parameters of type AnnotationModifier and TypeMethodDescriptionstatic TypeAnnotationTypeAnnotation.of(TypeAnnotation.TargetInfo targetInfo, List<TypeAnnotation.TypePathComponent> targetPath, Annotation annotation) Returns atype_annotationstructure.static AnnotationElementAnnotationElement.ofAnnotation(String name, Annotation value) Returns an element-value pair for an annotation-valued element.static AnnotationValue.OfAnnotationAnnotationValue.ofAnnotation(Annotation value) Returns an annotation value for an element-value pair. -
Uses of Annotation in java.lang.classfile.attribute
Methods in java.lang.classfile.attribute that return types with arguments of type AnnotationModifier and TypeMethodDescriptionRuntimeInvisibleAnnotationsAttribute.annotations()Returns the run-time invisible declaration annotations on this structure.RuntimeVisibleAnnotationsAttribute.annotations()Returns the run-time visible declaration annotations on this structure.RuntimeInvisibleParameterAnnotationsAttribute.parameterAnnotations()Returns the list of run-time invisible annotations on the method parameters.RuntimeVisibleParameterAnnotationsAttribute.parameterAnnotations()Returns the list of run-time visible annotations on the method parameters.Methods in java.lang.classfile.attribute with parameters of type AnnotationModifier and TypeMethodDescriptionRuntimeInvisibleAnnotationsAttribute.of(Annotation... annotations) Returns aRuntimeInvisibleAnnotationsattribute.RuntimeVisibleAnnotationsAttribute.of(Annotation... annotations) Returns aRuntimeVisibleAnnotationsattribute.Method parameters in java.lang.classfile.attribute with type arguments of type AnnotationModifier and TypeMethodDescriptionRuntimeInvisibleAnnotationsAttribute.of(List<Annotation> annotations) Returns aRuntimeInvisibleAnnotationsattribute.RuntimeInvisibleParameterAnnotationsAttribute.of(List<List<Annotation>> parameterAnnotations) Returns aRuntimeInvisibleParameterAnnotationsattribute.RuntimeVisibleAnnotationsAttribute.of(List<Annotation> annotations) Returns aRuntimeVisibleAnnotationsattribute.RuntimeVisibleParameterAnnotationsAttribute.of(List<List<Annotation>> parameterAnnotations) Returns aRuntimeVisibleParameterAnnotationsattribute.