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

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

- ## Uses of TypeAnnotation.OffsetTargetPREVIEW in java.lang.classfilePREVIEW

  Methods in java.lang.classfilePREVIEW that return TypeAnnotation.OffsetTargetPREVIEW
  Modifier and Type
  Method
  Description
  `static TypeAnnotation.OffsetTargetPREVIEW`
  TypeAnnotation.TargetInfo.`ofConstructorReference(LabelPREVIEW target)`
  Returns a target for annotations on the type before the :: in a constructor reference expression.
  `static TypeAnnotation.OffsetTargetPREVIEW`
  TypeAnnotation.TargetInfo.`ofInstanceofExpr(LabelPREVIEW target)`
  Returns a target for annotations on the type in an instanceof expression.
  `static TypeAnnotation.OffsetTargetPREVIEW`
  TypeAnnotation.TargetInfo.`ofMethodReference(LabelPREVIEW target)`
  Returns a target for annotations on the type before the :: in a method reference expression.
  `static TypeAnnotation.OffsetTargetPREVIEW`
  TypeAnnotation.TargetInfo.`ofNewExpr(LabelPREVIEW target)`
  Returns a target for annotations on the type in a new expression.
  `static TypeAnnotation.OffsetTargetPREVIEW`
  TypeAnnotation.TargetInfo.`ofOffset(TypeAnnotation.TargetTypePREVIEW targetType, LabelPREVIEW 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.