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
  • Method Details

    • target

      Label target()
      The code array offset of either the bytecode instruction corresponding to the instanceof expression, the new bytecode instruction corresponding to the new expression, or the bytecode instruction corresponding to the method reference expression.
      Returns:
      the code label corresponding to the instruction