# Uses of Interface
java.lang.classfile.TypeAnnotation.TargetInfo

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

- ## Uses of TypeAnnotation.TargetInfo in java.lang.classfile

  Subinterfaces of TypeAnnotation.TargetInfo in java.lang.classfile
  Modifier and Type
  Interface
  Description
  `static interface`
  `TypeAnnotation.CatchTarget`
  Indicates that an annotation appears on the i'th type in an exception parameter declaration.
  `static interface`
  `TypeAnnotation.EmptyTarget`
  Indicates that an annotation appears on either the type in a field declaration, the return type of a method, the type of a newly constructed object, or the receiver type of a method or constructor.
  `static interface`
  `TypeAnnotation.FormalParameterTarget`
  Indicates that an annotation appears on the type in a formal parameter declaration of a method, constructor, or lambda expression.
  `static interface`
  `TypeAnnotation.LocalVarTarget`
  Indicates that an annotation appears on the type in a local variable declaration, including a variable declared as a resource in a try-with-resources statement.
  `static interface`
  `TypeAnnotation.OffsetTarget`
  Indicates that an annotation appears on either the type in an instanceof expression or a new expression, or the type before the :: in a method reference expression.
  `static interface`
  `TypeAnnotation.SupertypeTarget`
  Indicates that an annotation appears on a type in the extends or implements clause of a class or interface declaration.
  `static interface`
  `TypeAnnotation.ThrowsTarget`
  Indicates that an annotation appears on the i'th type in the throws clause of a method or constructor declaration.
  `static interface`
  `TypeAnnotation.TypeArgumentTarget`
  Indicates that an annotation appears either on the i'th type in a cast expression, or on the i'th type argument in the explicit type argument list for any of the following: a new expression, an explicit constructor invocation statement, a method invocation expression, or a method reference expression.
  `static interface`
  `TypeAnnotation.TypeParameterBoundTarget`
  Indicates that an annotation appears on the i'th bound of the j'th type parameter declaration of a generic class, interface, method, or constructor.
  `static interface`
  `TypeAnnotation.TypeParameterTarget`
  Indicates that an annotation appears on the declaration of the i'th type parameter of a generic class, generic interface, generic method, or generic constructor.
  Methods in java.lang.classfile that return TypeAnnotation.TargetInfo
  Modifier and Type
  Method
  Description
  `TypeAnnotation.TargetInfo`
  TypeAnnotation.`targetInfo()`
  Returns information describing precisely which type in a declaration or expression is annotated.
  Methods in java.lang.classfile with parameters of type TypeAnnotation.TargetInfo
  Modifier and Type
  Method
  Description
  `static TypeAnnotation`
  TypeAnnotation.`of(TypeAnnotation.TargetInfo targetInfo, List<TypeAnnotation.TypePathComponent> targetPath, Annotation annotation)`
  Returns a `type_annotation` structure.