インタフェース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
関連項目:
  • メソッドの詳細

    • annotations

      List<Annotation> annotations()
      この構造に対する実行時可視宣言注釈を返します。
      戻り値:
      この構造体での実行時可視宣言注釈
    • of

      RuntimeVisibleAnnotations属性を返します。
      パラメータ:
      annotations - 注釈
      戻り値:
      RuntimeVisibleAnnotations属性
    • of

      static RuntimeVisibleAnnotationsAttribute of(Annotation... annotations)
      RuntimeVisibleAnnotations属性を返します。
      パラメータ:
      annotations - 注釈
      戻り値:
      RuntimeVisibleAnnotations属性