# Uses of Interface
java.lang.classfile.TypeAnnotation

Packages that use TypeAnnotationPREVIEW
Package
Description
java.lang.classfile
Provides classfile parsing, generation, and transformation library.
java.lang.classfile.attribute
Provides interfaces describing classfile attributes for the `java.lang.classfile`PREVIEW library.

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

  Methods in java.lang.classfilePREVIEW that return TypeAnnotationPREVIEW
  Modifier and Type
  Method
  Description
  `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, Utf8EntryPREVIEW annotationClassUtf8Entry, List<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.
  `static TypeAnnotationPREVIEW`
  TypeAnnotation.`of(TypeAnnotation.TargetInfoPREVIEW targetInfo, List<TypeAnnotation.TypePathComponentPREVIEW> targetPath, ClassDesc annotationClass, List<AnnotationElementPREVIEW> annotationElements)`
  Returns a type annotation.

- ## Uses of TypeAnnotationPREVIEW in java.lang.classfile.attributePREVIEW

  Methods in java.lang.classfile.attributePREVIEW that return types with arguments of type TypeAnnotationPREVIEW
  Modifier and Type
  Method
  Description
  `List<TypeAnnotationPREVIEW>`
  RuntimeInvisibleTypeAnnotationsAttribute.`annotations()`
  Returns the non-runtime-visible type annotations on parts of this class, field, or method.
  `List<TypeAnnotationPREVIEW>`
  RuntimeVisibleTypeAnnotationsAttribute.`annotations()`
  Returns the runtime-visible type annotations on parts of this class, field, or method.
  Methods in java.lang.classfile.attributePREVIEW with parameters of type TypeAnnotationPREVIEW
  Modifier and Type
  Method
  Description
  `static RuntimeInvisibleTypeAnnotationsAttributePREVIEW`
  RuntimeInvisibleTypeAnnotationsAttribute.`of(TypeAnnotationPREVIEW... annotations)`
  Returns a `RuntimeInvisibleTypeAnnotations` attribute.
  `static RuntimeVisibleTypeAnnotationsAttributePREVIEW`
  RuntimeVisibleTypeAnnotationsAttribute.`of(TypeAnnotationPREVIEW... annotations)`
  Returns a `RuntimeVisibleTypeAnnotations` attribute.
  Method parameters in java.lang.classfile.attributePREVIEW with type arguments of type TypeAnnotationPREVIEW
  Modifier and Type
  Method
  Description
  `static RuntimeInvisibleTypeAnnotationsAttributePREVIEW`
  RuntimeInvisibleTypeAnnotationsAttribute.`of(List<TypeAnnotationPREVIEW> annotations)`
  Returns a `RuntimeInvisibleTypeAnnotations` attribute.
  `static RuntimeVisibleTypeAnnotationsAttributePREVIEW`
  RuntimeVisibleTypeAnnotationsAttribute.`of(List<TypeAnnotationPREVIEW> annotations)`
  Returns a `RuntimeVisibleTypeAnnotations` attribute.