- すべてのスーパー・インタフェース:
AttributePREVIEW<ExceptionsAttributePREVIEW>
,ClassFileElementPREVIEW
,MethodElementPREVIEW
,WritableElementPREVIEW<ExceptionsAttributePREVIEW>
public sealed interface ExceptionsAttribute extends AttributePREVIEW<ExceptionsAttributePREVIEW>, MethodElementPREVIEW
ExceptionsAttribute
は、JavaプラットフォームのプレビューAPIです。
プレビュー機能は、今後のリリースで削除するか、Javaプラットフォームの永続機能にアップグレードすることができます。
メソッドに指定できる
Exceptions
属性4.7.5をモデル化し、このメソッドによってスローされるよう宣言された例外を記録します。 MethodModel
PREVIEWの要素をトラバースするときに、MethodElement
PREVIEWとして提供されます。
この属性は、特定のロケーションにある複数のインスタンスを許可しません。 属性の後続の出現は、属性要素の作成時または変換時に優先されます。
- 導入されたバージョン:
- 22
-
メソッドのサマリー
修飾子と型メソッド説明このメソッドによってスローされるよう宣言された例外を返します。static ExceptionsAttributePREVIEW
of
(ClassEntryPREVIEW... exceptions) Exceptions
属性を返します。static ExceptionsAttributePREVIEW
of
(List<ClassEntryPREVIEW> exceptions) Exceptions
属性を返します。static ExceptionsAttributePREVIEW
Exceptions
属性を返します。static ExceptionsAttributePREVIEW
Exceptions
属性を返します。インタフェースjava.lang.classfile.AttributePREVIEWで宣言されたメソッド
attributeMapper, attributeName
インタフェースjava.lang.classfile.WritableElementPREVIEWで宣言されたメソッド
writeTo
-
メソッドの詳細
-
exceptions
-
of
static ExceptionsAttributePREVIEW of(List<ClassEntryPREVIEW> exceptions) Exceptions
属性を返します。- パラメータ:
exceptions
- このメソッドからスローされる可能性のあるチェック済例外- 戻り値:
Exceptions
属性
-
of
static ExceptionsAttributePREVIEW of(ClassEntryPREVIEW... exceptions) Exceptions
属性を返します。- パラメータ:
exceptions
- このメソッドからスローされる可能性のあるチェック済例外- 戻り値:
Exceptions
属性
-
ofSymbols
static ExceptionsAttributePREVIEW ofSymbols(List<ClassDesc> exceptions) Exceptions
属性を返します。- パラメータ:
exceptions
- このメソッドからスローされる可能性のあるチェック済例外- 戻り値:
Exceptions
属性
-
ofSymbols
static ExceptionsAttributePREVIEW ofSymbols(ClassDesc... exceptions) Exceptions
属性を返します。- パラメータ:
exceptions
- このメソッドからスローされる可能性のあるチェック済例外- 戻り値:
Exceptions
属性
-
ExceptionsAttribute
を使用できます。