- すべてのスーパー・インタフェース:
TypeAnnotation.TargetInfoPREVIEW
- 含まれているインタフェース:
TypeAnnotationPREVIEW
public static sealed interface TypeAnnotation.ThrowsTarget extends TypeAnnotation.TargetInfoPREVIEW
ThrowsTarget
は、JavaプラットフォームのプレビューAPIです。
プレビュー機能は、今後のリリースで削除するか、Javaプラットフォームの永続機能にアップグレードすることができます。
メソッド宣言またはコンストラクタ宣言のthrows句のi番目の型に注釈が表示されることを示します。
- 導入されたバージョン:
- 22
-
メソッドのサマリー
修飾子と型メソッド説明int
RuntimeVisibleTypeAnnotations属性を囲むmethod_info構造体のExceptions属性のexception_index_table配列への索引。インタフェースjava.lang.classfile.TypeAnnotation.TargetInfoPREVIEWで宣言されたメソッド
size, targetType
-
メソッドの詳細
-
throwsTargetIndex
int throwsTargetIndex()RuntimeVisibleTypeAnnotations属性を囲むmethod_info構造体のExceptions属性のexception_index_table配列への索引。- 戻り値:
- リストjava.lang.classfile.attribute.ExceptionsAttribute.exceptions()への索引
-
ThrowsTarget
を使用できます。