Uses of Interface
java.lang.classfile.AnnotationElement
Package
Description
Provides classfile parsing, generation, and transformation library.
-
Uses of AnnotationElement in java.lang.classfile
Modifier and TypeMethodDescriptionstatic AnnotationElement
AnnotationElement.of
(Utf8Entry name, AnnotationValue value) Returns an element-value pair.static AnnotationElement
AnnotationElement.of
(String name, AnnotationValue value) Returns an element-value pair.static AnnotationElement
AnnotationElement.ofAnnotation
(String name, Annotation value) Returns an element-value pair for an annotation-valued element.static AnnotationElement
AnnotationElement.ofArray
(String name, AnnotationValue... values) Returns an element-value pair for an array-valued element.static AnnotationElement
Returns an element-value pair for a boolean-valued element.static AnnotationElement
Returns an element-value pair for a byte-valued element.static AnnotationElement
Returns an element-value pair for a char-valued element.static AnnotationElement
Returns an element-value pair for a class-valued element.static AnnotationElement
Returns an element-value pair for a double-valued element.static AnnotationElement
Returns an element-value pair for a float-valued element.static AnnotationElement
Returns an element-value pair for an int-valued element.static AnnotationElement
Returns an element-value pair for a long-valued element.static AnnotationElement
Returns an element-value pair for a short-valued element.static AnnotationElement
Returns an element-value pair for a string-valued element.Modifier and TypeMethodDescriptionAnnotation.elements()
Returns the element-value pairs of the annotation.Modifier and TypeMethodDescriptionstatic Annotation
Annotation.of
(Utf8Entry annotationClass, AnnotationElement... elements) Returns an annotation.static Annotation
Annotation.of
(ClassDesc annotationClass, AnnotationElement... elements) Returns an annotation.Modifier and TypeMethodDescriptionstatic Annotation
Annotation.of
(Utf8Entry annotationClass, List<AnnotationElement> elements) Returns an annotation.static Annotation
Annotation.of
(ClassDesc annotationClass, List<AnnotationElement> elements) Returns an annotation.