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