インタフェースRuntimeVisibleAnnotationsAttribute

すべてのスーパー・インタフェース:
AttributePREVIEW<RuntimeVisibleAnnotationsAttributePREVIEW>, ClassElementPREVIEW, ClassFileElementPREVIEW, FieldElementPREVIEW, MethodElementPREVIEW, WritableElementPREVIEW<RuntimeVisibleAnnotationsAttributePREVIEW>

RuntimeVisibleAnnotationsAttributeは、JavaプラットフォームのプレビューAPIです。
プレビュー機能が有効な場合のみ、プログラムでRuntimeVisibleAnnotationsAttributeを使用できます。
プレビュー機能は、今後のリリースで削除するか、Javaプラットフォームの永続機能にアップグレードすることができます。
クラス、メソッドおよびフィールドに表示されるRuntimeVisibleAnnotations属性4.7.16をモデル化します。 対応するモデル・タイプのトラバース時に、ClassElementPREVIEWFieldElementPREVIEWまたはMethodElementPREVIEWとして提供されます。

この属性は、特定のロケーションにある複数のインスタンスを許可しません。 属性の後続の出現は、属性要素の作成時または変換時に優先されます。

この属性は、Java SEプラットフォーム・バージョン5.0で導入されました。

導入されたバージョン:
22
  • メソッドの詳細

    • annotations

      List<AnnotationPREVIEW> annotations()
      このクラス、フィールドまたはメソッドで実行時に表示される注釈を返します。
      戻り値:
      このクラス、フィールドまたはメソッドの実行時に表示される注釈
    • of

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

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