# Uses of Enum Class
java.lang.classfile.TypeAnnotation.TargetType

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

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

  Subclasses with type arguments of type TypeAnnotation.TargetType in java.lang.classfile
  Modifier and Type
  Class
  Description
  `static enum`
  `TypeAnnotation.TargetType`
  The kind of target on which the annotation appears, as defined in JVMS 4.7.20.1.
  Methods in java.lang.classfile that return TypeAnnotation.TargetType
  Modifier and Type
  Method
  Description
  `TypeAnnotation.TargetType`
  TypeAnnotation.TargetInfo.`targetType()`
  Returns the type of the target.
  `static TypeAnnotation.TargetType`
  TypeAnnotation.TargetType.`valueOf(String name)`
  Returns the enum constant of this class with the specified name.
  `static TypeAnnotation.TargetType[]`
  TypeAnnotation.TargetType.`values()`
  Returns an array containing the constants of this enum class, in the order they are declared.
  Methods in java.lang.classfile with parameters of type TypeAnnotation.TargetType
  Modifier and Type
  Method
  Description
  `static TypeAnnotation.EmptyTarget`
  TypeAnnotation.TargetInfo.`of(TypeAnnotation.TargetType targetType)`
  Returns a target for annotations.
  `static TypeAnnotation.OffsetTarget`
  TypeAnnotation.TargetInfo.`ofOffset(TypeAnnotation.TargetType targetType, Label target)`
  Returns a target for annotations on the type in an instanceof expression or a new expression, or the type before the :: in a method reference expression.
  `static TypeAnnotation.TypeArgumentTarget`
  TypeAnnotation.TargetInfo.`ofTypeArgument(TypeAnnotation.TargetType targetType, Label target, int typeArgumentIndex)`
  Returns a target for annotations 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 TypeAnnotation.TypeParameterTarget`
  TypeAnnotation.TargetInfo.`ofTypeParameter(TypeAnnotation.TargetType targetType, int typeParameterIndex)`
  Returns a target for annotations on a class or method type parameter declaration.
  `static TypeAnnotation.TypeParameterBoundTarget`
  TypeAnnotation.TargetInfo.`ofTypeParameterBound(TypeAnnotation.TargetType targetType, int typeParameterIndex, int boundIndex)`
  Returns a target for annotations on the i'th bound of the j'th type parameter declaration of a generic class, interface, method, or constructor.
  `static TypeAnnotation.LocalVarTarget`
  TypeAnnotation.TargetInfo.`ofVariable(TypeAnnotation.TargetType targetType, List<TypeAnnotation.LocalVarTargetInfo> table)`
  Returns a target for annotations on the type in a local variable declaration, including a variable declared as a resource in a try-with-resources statement.