Module java.base
Package java.lang.classfile

# Interface TypeAnnotation.TargetInfo

=
public abstract static sealed interface TargetInfo
permits java.lang.classfile.TypeAnnotation.CatchTarget, java.lang.classfile.TypeAnnotation.EmptyTarget, java.lang.classfile.TypeAnnotation.FormalParameterTarget, java.lang.classfile.TypeAnnotation.LocalVarTarget, java.lang.classfile.TypeAnnotation.OffsetTarget, java.lang.classfile.TypeAnnotation.SupertypeTarget, java.lang.classfile.TypeAnnotation.ThrowsTarget, java.lang.classfile.TypeAnnotation.TypeArgumentTarget, java.lang.classfile.TypeAnnotation.TypeParameterBoundTarget, java.lang.classfile.TypeAnnotation.TypeParameterTarget

## Fields

- =
  public static final int TARGET_CAST = 71
- =
  public static final int TARGET_CLASS_EXTENDS = 16
- =
  public static final int TARGET_CLASS_TYPE_PARAMETER = 0
- =
  public static final int TARGET_CLASS_TYPE_PARAMETER_BOUND = 17
- =
  public static final int TARGET_CONSTRUCTOR_INVOCATION_TYPE_ARGUMENT = 72
- =
  public static final int TARGET_CONSTRUCTOR_REFERENCE = 69
- =
  public static final int TARGET_CONSTRUCTOR_REFERENCE_TYPE_ARGUMENT = 74
- =
  public static final int TARGET_EXCEPTION_PARAMETER = 66
- =
  public static final int TARGET_FIELD = 19
- =
  public static final int TARGET_INSTANCEOF = 67
- =
  public static final int TARGET_LOCAL_VARIABLE = 64
- =
  public static final int TARGET_METHOD_FORMAL_PARAMETER = 22
- =
  public static final int TARGET_METHOD_INVOCATION_TYPE_ARGUMENT = 73
- =
  public static final int TARGET_METHOD_RECEIVER = 21
- =
  public static final int TARGET_METHOD_REFERENCE = 70
- =
  public static final int TARGET_METHOD_REFERENCE_TYPE_ARGUMENT = 75
- =
  public static final int TARGET_METHOD_RETURN = 20
- =
  public static final int TARGET_METHOD_TYPE_PARAMETER = 1
- =
  public static final int TARGET_METHOD_TYPE_PARAMETER_BOUND = 18
- =
  public static final int TARGET_NEW = 68
- =
  public static final int TARGET_RESOURCE_VARIABLE = 65
- =
  public static final int TARGET_THROWS = 23

## Methods

- =
  public static java.lang.classfile.TypeAnnotation.EmptyTarget of(java.lang.classfile.TypeAnnotation.TargetType arg0)
- =
  public static java.lang.classfile.TypeAnnotation.TypeArgumentTarget ofCastExpr(java.lang.classfile.Label arg0, int arg1)
- =
  public static java.lang.classfile.TypeAnnotation.SupertypeTarget ofClassExtends(int arg0)
- =
  public static java.lang.classfile.TypeAnnotation.TypeParameterTarget ofClassTypeParameter(int arg0)
- =
  public static java.lang.classfile.TypeAnnotation.TypeParameterBoundTarget ofClassTypeParameterBound(int arg0, int arg1)
- =
  public static java.lang.classfile.TypeAnnotation.TypeArgumentTarget ofConstructorInvocationTypeArgument(java.lang.classfile.Label arg0, int arg1)
- =
  public static java.lang.classfile.TypeAnnotation.OffsetTarget ofConstructorReference(java.lang.classfile.Label arg0)
- =
  public static java.lang.classfile.TypeAnnotation.TypeArgumentTarget ofConstructorReferenceTypeArgument(java.lang.classfile.Label arg0, int arg1)
- =
  public static java.lang.classfile.TypeAnnotation.CatchTarget ofExceptionParameter(int arg0)
- =
  public static java.lang.classfile.TypeAnnotation.EmptyTarget ofField()
- =
  public static java.lang.classfile.TypeAnnotation.OffsetTarget ofInstanceofExpr(java.lang.classfile.Label arg0)
- =
  public static java.lang.classfile.TypeAnnotation.LocalVarTarget ofLocalVariable(java.util.List<java.lang.classfile.TypeAnnotation.LocalVarTargetInfo> arg0)
- =
  public static java.lang.classfile.TypeAnnotation.FormalParameterTarget ofMethodFormalParameter(int arg0)
- =
  public static java.lang.classfile.TypeAnnotation.TypeArgumentTarget ofMethodInvocationTypeArgument(java.lang.classfile.Label arg0, int arg1)
- =
  public static java.lang.classfile.TypeAnnotation.EmptyTarget ofMethodReceiver()
- =
  public static java.lang.classfile.TypeAnnotation.OffsetTarget ofMethodReference(java.lang.classfile.Label arg0)
- =
  public static java.lang.classfile.TypeAnnotation.TypeArgumentTarget ofMethodReferenceTypeArgument(java.lang.classfile.Label arg0, int arg1)
- =
  public static java.lang.classfile.TypeAnnotation.EmptyTarget ofMethodReturn()
- =
  public static java.lang.classfile.TypeAnnotation.TypeParameterTarget ofMethodTypeParameter(int arg0)
- =
  public static java.lang.classfile.TypeAnnotation.TypeParameterBoundTarget ofMethodTypeParameterBound(int arg0, int arg1)
- =
  public static java.lang.classfile.TypeAnnotation.OffsetTarget ofNewExpr(java.lang.classfile.Label arg0)
- =
  public static java.lang.classfile.TypeAnnotation.OffsetTarget ofOffset(java.lang.classfile.TypeAnnotation.TargetType arg0, java.lang.classfile.Label arg1)
- =
  public static java.lang.classfile.TypeAnnotation.LocalVarTarget ofResourceVariable(java.util.List<java.lang.classfile.TypeAnnotation.LocalVarTargetInfo> arg0)
- =
  public static java.lang.classfile.TypeAnnotation.ThrowsTarget ofThrows(int arg0)
- =
  public static java.lang.classfile.TypeAnnotation.TypeArgumentTarget ofTypeArgument(java.lang.classfile.TypeAnnotation.TargetType arg0, java.lang.classfile.Label arg1, int arg2)
- =
  public static java.lang.classfile.TypeAnnotation.TypeParameterTarget ofTypeParameter(java.lang.classfile.TypeAnnotation.TargetType arg0, int arg1)
- =
  public static java.lang.classfile.TypeAnnotation.TypeParameterBoundTarget ofTypeParameterBound(java.lang.classfile.TypeAnnotation.TargetType arg0, int arg1, int arg2)
- =
  public static java.lang.classfile.TypeAnnotation.LocalVarTarget ofVariable(java.lang.classfile.TypeAnnotation.TargetType arg0, java.util.List<java.lang.classfile.TypeAnnotation.LocalVarTargetInfo> arg1)
- =
  public default int size()
- =
  public abstract java.lang.classfile.TypeAnnotation.TargetType targetType()

## Summary

No differences.