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