Interface TypeAnnotation.OffsetTarget

All Superinterfaces:
TypeAnnotation.TargetInfo
Enclosing interface:
TypeAnnotation

public static sealed interface TypeAnnotation.OffsetTarget extends TypeAnnotation.TargetInfo
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.
Since:
24
See Also:
  • Method Details

    • target

      Label target()
      The label right before the Instruction corresponding to the instanceof expression, the new expression, or the method reference expression.
      Returns:
      the label right before the instruction