モジュール java.base
インタフェースRuntimeInvisibleAnnotationsAttribute
- すべてのスーパー・インタフェース:
AttributePREVIEW<RuntimeInvisibleAnnotationsAttributePREVIEW>,ClassElementPREVIEW,ClassFileElementPREVIEW,FieldElementPREVIEW,MethodElementPREVIEW,WritableElementPREVIEW<RuntimeInvisibleAnnotationsAttributePREVIEW>
public sealed interface RuntimeInvisibleAnnotationsAttribute extends AttributePREVIEW<RuntimeInvisibleAnnotationsAttributePREVIEW>, ClassElementPREVIEW, MethodElementPREVIEW, FieldElementPREVIEW
RuntimeInvisibleAnnotationsAttributeは、JavaプラットフォームのプレビューAPIです。
プレビュー機能は、今後のリリースで削除するか、Javaプラットフォームの永続機能にアップグレードすることができます。
クラス、メソッドおよびフィールドに表示される
RuntimeInvisibleAnnotations属性4.7.17をモデル化します。 対応するモデル・タイプのトラバース時に、ClassElementPREVIEW、FieldElementPREVIEWまたはMethodElementPREVIEWとして提供されます。
この属性は、特定のロケーションにある複数のインスタンスを許可しません。 属性の後続の出現は、属性要素の作成時または変換時に優先されます。
この属性は、Java SEプラットフォーム・バージョン5.0で導入されました。
- 導入されたバージョン:
- 22
-
メソッドのサマリー
修飾子と型メソッド説明このクラス、フィールドまたはメソッドの非ランタイム表示の注釈を返します。of(AnnotationPREVIEW... annotations) RuntimeInvisibleAnnotations属性を返します。of(List<AnnotationPREVIEW> annotations) RuntimeInvisibleAnnotations属性を返します。インタフェースjava.lang.classfile.AttributePREVIEWで宣言されたメソッド
attributeMapper, attributeNameインタフェースjava.lang.classfile.WritableElementPREVIEWで宣言されたメソッド
writeTo
-
メソッドの詳細
-
annotations
List<AnnotationPREVIEW> annotations()このクラス、フィールドまたはメソッドの非ランタイム表示の注釈を返します。- 戻り値:
- このクラス、フィールドまたはメソッドの非ランタイム表示注釈
-
of
static RuntimeInvisibleAnnotationsAttributePREVIEW of(List<AnnotationPREVIEW> annotations) RuntimeInvisibleAnnotations属性を返します。- パラメータ:
annotations- 注釈- 戻り値:
RuntimeInvisibleAnnotations属性
-
of
static RuntimeInvisibleAnnotationsAttributePREVIEW of(AnnotationPREVIEW... annotations) RuntimeInvisibleAnnotations属性を返します。- パラメータ:
annotations- 注釈- 戻り値:
RuntimeInvisibleAnnotations属性
-
RuntimeInvisibleAnnotationsAttributeを使用できます。