インタフェースRuntimeVisibleParameterAnnotationsAttribute

すべてのスーパー・インタフェース:
AttributePREVIEW<RuntimeVisibleParameterAnnotationsAttributePREVIEW>, ClassFileElementPREVIEW, MethodElementPREVIEW, WritableElementPREVIEW<RuntimeVisibleParameterAnnotationsAttributePREVIEW>

public sealed interface RuntimeVisibleParameterAnnotationsAttribute extends AttributePREVIEW<RuntimeVisibleParameterAnnotationsAttributePREVIEW>, MethodElementPREVIEW
RuntimeVisibleParameterAnnotationsAttributeは、JavaプラットフォームのプレビューAPIです。
プレビュー機能が有効な場合のみ、プログラムでRuntimeVisibleParameterAnnotationsAttributeを使用できます。
プレビュー機能は、今後のリリースで削除するか、Javaプラットフォームの永続機能にアップグレードすることができます。
メソッドに指定できるRuntimeVisibleParameterAnnotations属性4.7.18をモデル化します。 MethodModelPREVIEWのトラバース時にMethodElementPREVIEWとして提供されます。
APIのノート:
この属性は、特定のロケーションにある複数のインスタンスを許可しません。 属性の後続の出現は、属性要素の作成時または変換時に優先されます。

この属性は、Java SEプラットフォーム・バージョン5.0で導入されました。

導入されたバージョン:
22
  • メソッドの詳細

    • parameterAnnotations

      List<List<AnnotationPREVIEW>> parameterAnnotations()
      各メソッド・パラメータに対応する注釈のリストを返します。 i番目のインデックスの要素は、i番目のパラメータの注釈に対応します。
      戻り値:
      各メソッド・パラメータに対応する注釈のリスト
    • of

      RuntimeVisibleParameterAnnotations属性を返します。
      パラメータ:
      parameterAnnotations - 各パラメータのパラメータ注釈のリスト
      戻り値:
      RuntimeVisibleParameterAnnotations属性