インタフェースTypeAnnotation.ThrowsTarget

すべてのスーパー・インタフェース:
TypeAnnotation.TargetInfoPREVIEW
含まれているインタフェース:
TypeAnnotationPREVIEW

public static sealed interface TypeAnnotation.ThrowsTarget extends TypeAnnotation.TargetInfoPREVIEW
ThrowsTargetは、JavaプラットフォームのプレビューAPIです。
プレビュー機能が有効な場合のみ、プログラムでThrowsTargetを使用できます。
プレビュー機能は、今後のリリースで削除するか、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()への索引