インタフェースRuntimeVisibleTypeAnnotationsAttribute

すべてのスーパー・インタフェース:
Attribute<RuntimeVisibleTypeAnnotationsAttribute>, ClassElement, ClassFileElement, CodeElement, FieldElement, MethodElement

public sealed interface RuntimeVisibleTypeAnnotationsAttribute extends Attribute<RuntimeVisibleTypeAnnotationsAttribute>, ClassElement, MethodElement, FieldElement, CodeElement
RuntimeVisibleTypeAnnotations属性(JVMS 4.7.20)をモデル化します。この属性には、classファイル・コンシューマと「コア反射」の両方に表示される、この構造内の型の注釈付き使用のためのタイプ使用注釈が格納されます。 CodeModelのトラバーサルでの配信は、ClassFile.DebugElementsOptionで切り替えることができます。

この属性は、クラス、フィールド、メソッド、Code属性およびレコード・コンポーネントに表示され、1つの構造で「複数のインスタンス」は許可されません。 classファイル形式の「任意のインデックス」へのデータ依存性があるため、ユーザーは、classファイルが変換された後もこの属性が正しいことを確認するために十分に注意する必要があります。

属性は、Java SE Platformバージョン8のメジャー・バージョン52で導入されました。

Java Virtual Machine仕様を参照してください:
「4.7.20 RuntimeVisibleTypeAnnotations属性」
導入されたバージョン:
24
関連項目:
  • メソッドの詳細

    • annotations

      List<TypeAnnotation> annotations()
      この構造体内の型の使用に関する実行時可視注釈を返します。
      戻り値:
      この構造体内の型の使用に関する実行時可視注釈
    • of

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

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