インタフェースRuntimeVisibleAnnotationsAttribute
- すべてのスーパー・インタフェース:
Attribute<RuntimeVisibleAnnotationsAttribute>
,ClassElement
,ClassFileElement
,FieldElement
,MethodElement
public sealed interface RuntimeVisibleAnnotationsAttribute extends Attribute<RuntimeVisibleAnnotationsAttribute>, ClassElement, MethodElement, FieldElement
RuntimeVisibleAnnotations
属性(JVMS 4.7.16)をモデル化します。この属性には、class
ファイル・コンシューマと「コア反射」の両方に表示される宣言注釈が格納されます。
この属性は、クラス、フィールド、メソッドおよびレコード・コンポーネントに表示され、1つの構造で「複数のインスタンス」は許可されません。 「定数プール」へのデータ依存性があります。
属性は、Java SEプラットフォーム・バージョン5.0(メジャー・バージョン49)で導入されました。
- Java Virtual Machine仕様を参照してください:
-
4.7.16
RuntimeVisibleAnnotations
属性 - 導入されたバージョン:
- 24
- 関連項目:
-
メソッドのサマリー
修飾子と型メソッド説明この構造に対する実行時可視宣言注釈を返します。of
(Annotation... annotations) RuntimeVisibleAnnotations
属性を返します。of
(List<Annotation> annotations) RuntimeVisibleAnnotations
属性を返します。インタフェースjava.lang.classfile.Attributeで宣言されたメソッド
attributeMapper, attributeName
-
メソッドの詳細
-
annotations
-
of
static RuntimeVisibleAnnotationsAttribute of(List<Annotation> annotations) RuntimeVisibleAnnotations
属性を返します。- パラメータ:
annotations
- 注釈- 戻り値:
RuntimeVisibleAnnotations
属性
-
of
static RuntimeVisibleAnnotationsAttribute of(Annotation... annotations) RuntimeVisibleAnnotations
属性を返します。- パラメータ:
annotations
- 注釈- 戻り値:
RuntimeVisibleAnnotations
属性
-