# Uses of Interface
java.lang.classfile.AnnotationElement

Packages that use AnnotationElementPREVIEW
Package
Description
java.lang.classfile
Provides classfile parsing, generation, and transformation library.

- ## Uses of AnnotationElementPREVIEW in java.lang.classfilePREVIEW

  Methods in java.lang.classfilePREVIEW that return AnnotationElementPREVIEW
  Modifier and Type
  Method
  Description
  `static AnnotationElementPREVIEW`
  AnnotationElement.`of(Utf8EntryPREVIEW name, AnnotationValuePREVIEW value)`
  Returns an annotation key-value pair.
  `static AnnotationElementPREVIEW`
  AnnotationElement.`of(String name, AnnotationValuePREVIEW value)`
  Returns an annotation key-value pair.
  `static AnnotationElementPREVIEW`
  AnnotationElement.`ofAnnotation(String name, AnnotationPREVIEW value)`
  Returns an annotation key-value pair for an annotation-valued annotation.
  `static AnnotationElementPREVIEW`
  AnnotationElement.`ofArray(String name, AnnotationValuePREVIEW... values)`
  Returns an annotation key-value pair for an array-valued annotation.
  `static AnnotationElementPREVIEW`
  AnnotationElement.`ofBoolean(String name, boolean value)`
  Returns an annotation key-value pair for a boolean-valued annotation.
  `static AnnotationElementPREVIEW`
  AnnotationElement.`ofByte(String name, byte value)`
  Returns an annotation key-value pair for a byte-valued annotation.
  `static AnnotationElementPREVIEW`
  AnnotationElement.`ofChar(String name, char value)`
  Returns an annotation key-value pair for a char-valued annotation.
  `static AnnotationElementPREVIEW`
  AnnotationElement.`ofClass(String name, ClassDesc value)`
  Returns an annotation key-value pair for a class-valued annotation.
  `static AnnotationElementPREVIEW`
  AnnotationElement.`ofDouble(String name, double value)`
  Returns an annotation key-value pair for a double-valued annotation.
  `static AnnotationElementPREVIEW`
  AnnotationElement.`ofFloat(String name, float value)`
  Returns an annotation key-value pair for a float-valued annotation.
  `static AnnotationElementPREVIEW`
  AnnotationElement.`ofInt(String name, int value)`
  Returns an annotation key-value pair for an int-valued annotation.
  `static AnnotationElementPREVIEW`
  AnnotationElement.`ofLong(String name, long value)`
  Returns an annotation key-value pair for a long-valued annotation.
  `static AnnotationElementPREVIEW`
  AnnotationElement.`ofShort(String name, short value)`
  Returns an annotation key-value pair for a short-valued annotation.
  `static AnnotationElementPREVIEW`
  AnnotationElement.`ofString(String name, String value)`
  Returns an annotation key-value pair for a string-valued annotation.
  Methods in java.lang.classfilePREVIEW that return types with arguments of type AnnotationElementPREVIEW
  Modifier and Type
  Method
  Description
  `List<AnnotationElementPREVIEW>`
  Annotation.`elements()`
  Returns the elements of the annotation.
  Methods in java.lang.classfilePREVIEW with parameters of type AnnotationElementPREVIEW
  Modifier and Type
  Method
  Description
  `static AnnotationPREVIEW`
  Annotation.`of(Utf8EntryPREVIEW annotationClass, AnnotationElementPREVIEW... elements)`
  Returns an annotation.
  `static AnnotationPREVIEW`
  Annotation.`of(ClassDesc annotationClass, AnnotationElementPREVIEW... elements)`
  Returns an annotation.
  `static TypeAnnotationPREVIEW`
  TypeAnnotation.`of(TypeAnnotation.TargetInfoPREVIEW targetInfo, List<TypeAnnotation.TypePathComponentPREVIEW> targetPath, Utf8EntryPREVIEW annotationClassUtf8Entry, AnnotationElementPREVIEW... annotationElements)`
  Returns a type annotation.
  `static TypeAnnotationPREVIEW`
  TypeAnnotation.`of(TypeAnnotation.TargetInfoPREVIEW targetInfo, List<TypeAnnotation.TypePathComponentPREVIEW> targetPath, ClassDesc annotationClass, AnnotationElementPREVIEW... annotationElements)`
  Returns a type annotation.
  Method parameters in java.lang.classfilePREVIEW with type arguments of type AnnotationElementPREVIEW
  Modifier and Type
  Method
  Description
  `static AnnotationPREVIEW`
  Annotation.`of(Utf8EntryPREVIEW annotationClass, List<AnnotationElementPREVIEW> elements)`
  Returns an annotation.
  `static AnnotationPREVIEW`
  Annotation.`of(ClassDesc annotationClass, List<AnnotationElementPREVIEW> elements)`
  Returns an annotation.