インタフェースExceptionsAttribute
- すべてのスーパー・インタフェース:
Attribute<ExceptionsAttribute>
,ClassFileElement
,MethodElement
public sealed interface ExceptionsAttribute extends Attribute<ExceptionsAttribute>, MethodElement
Exceptions
属性(JVMS 4.7.5)をモデル化します。この属性には、このメソッドによってスローされるよう宣言された例外が記録されます。
この属性はメソッドにのみ表示され、メソッドでは「複数のインスタンス」は許可されません。 「定数プール」へのデータ依存性があります。
属性は、Javaプラットフォーム・バージョン1.0.2(メジャー・バージョン45)で導入されました。
- APIのノート:
- メソッドによってスローされる一般的な例外タイプと、これらのタイプの注釈付き使用の可能性は、それぞれ
SignatureAttribute
およびRuntimeVisibleTypeAnnotationsAttribute
によって定義され、この属性が存在する必要があります。 - Java Virtual Machine仕様を参照してください:
-
「4.7.5
Exceptions
属性」 - 導入されたバージョン:
- 24
- 関連項目:
-
メソッドのサマリー
修飾子と型メソッド説明このメソッドによってスローされるよう宣言された例外を返します。static ExceptionsAttribute
of
(ClassEntry... exceptions) Exceptions
属性を返します。static ExceptionsAttribute
of
(List<ClassEntry> exceptions) Exceptions
属性を返します。static ExceptionsAttribute
Exceptions
属性を返します。static ExceptionsAttribute
Exceptions
属性を返します。インタフェースjava.lang.classfile.Attributeで宣言されたメソッド
attributeMapper, attributeName
-
メソッドの詳細
-
exceptions
-
of
static ExceptionsAttribute of(List<ClassEntry> exceptions) Exceptions
属性を返します。- パラメータ:
exceptions
- このメソッドからスローされる可能性のある例外- 戻り値:
Exceptions
属性
-
of
static ExceptionsAttribute of(ClassEntry... exceptions) Exceptions
属性を返します。- パラメータ:
exceptions
- このメソッドからスローされる可能性のある例外- 戻り値:
Exceptions
属性
-
ofSymbols
static ExceptionsAttribute ofSymbols(List<ClassDesc> exceptions) Exceptions
属性を返します。- パラメータ:
exceptions
- このメソッドからスローされる可能性のある例外- 戻り値:
Exceptions
属性
-
ofSymbols
static ExceptionsAttribute ofSymbols(ClassDesc... exceptions) Exceptions
属性を返します。- パラメータ:
exceptions
- このメソッドからスローされる可能性のある例外- 戻り値:
Exceptions
属性
-