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