Interface TypeAnnotation.ThrowsTarget

All Superinterfaces:
TypeAnnotation.TargetInfo
Enclosing interface:
TypeAnnotation

public static sealed interface TypeAnnotation.ThrowsTarget extends TypeAnnotation.TargetInfo
Indicates that an annotation appears on the i'th type in the throws clause of a method or constructor declaration.
Since:
24
See Also:
  • Method Details

    • throwsTargetIndex

      int throwsTargetIndex()
      The index into the exception_index_table array of the Exceptions attribute of the method_info structure enclosing the RuntimeVisibleTypeAnnotations attribute.
      Returns:
      the index into the list java.lang.classfile.attribute.ExceptionsAttribute.exceptions()