- All Superinterfaces:
TypeAnnotation.TargetInfo
- All Known Implementing Classes:
TargetInfoImpl.ThrowsTargetImpl
- Enclosing interface:
TypeAnnotation
public static sealed interface TypeAnnotation.ThrowsTarget
extends TypeAnnotation.TargetInfo
permits TargetInfoImpl.ThrowsTargetImpl
Indicates that an annotation appears on the i'th type in the throws
clause of a method or constructor declaration.
- Since:
- 22
-
Method Summary
Modifier and TypeMethodDescriptionintThe index into the exception_index_table array of the Exceptions attribute of the method_info structure enclosing the RuntimeVisibleTypeAnnotations attribute.Methods inherited from interface org.glavo.classfile.TypeAnnotation.TargetInfo
size, targetType
-
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()
-