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