インタフェースRuntimeInvisibleTypeAnnotationsAttribute

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

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

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

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

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

    • annotations

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

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

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