インタフェースRuntimeVisibleParameterAnnotationsAttribute

すべてのスーパー・インタフェース:
Attribute<RuntimeVisibleParameterAnnotationsAttribute>, ClassFileElement, MethodElement

public sealed interface RuntimeVisibleParameterAnnotationsAttribute extends Attribute<RuntimeVisibleParameterAnnotationsAttribute>, MethodElement
RuntimeVisibleParameterAnnotations属性(JVMS 4.7.18)をモデル化します。この属性には、classファイル・コンシューマと「コア反射」の両方に表示される、このメソッドのメソッド・パラメータに宣言注釈が格納されます。

この属性はメソッドにのみ表示され、メソッドでは「複数のインスタンス」は許可されません。 「定数プール」へのデータ依存性があります。

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

Java Virtual Machine仕様を参照してください:
「4.7.18 RuntimeVisibleParameterAnnotations属性」
導入されたバージョン:
24
関連項目:
  • メソッドの詳細

    • parameterAnnotations

      List<List<Annotation>> parameterAnnotations()
      メソッド・パラメータの実行時表示注釈のリストを返します。 i番目の索引の要素は、i番目の仮パラメータの注釈に対応していますが、このリストでは一部の合成パラメータまたは暗黙的なパラメータが省略される可能性があることに注意してください。 パラメータに注釈がない場合、その要素は空のままですが、省略されません。したがって、末尾のパラメータに注釈が付けられていないため、リストは切り捨てられません。
      戻り値:
      メソッド・パラメータでのランタイム表示注釈のリスト
      関連項目:
    • of

      RuntimeVisibleParameterAnnotations属性を返します。 parameterAnnotationsリストは切り捨ててはいけません。また、仮パラメータの数と同じ長さにする必要があります。注釈なしパラメータの要素は空にできますが、省略することはできません。 いくつかの合成パラメータまたは暗黙的なパラメータは省略できます。
      パラメータ:
      parameterAnnotations - 各パラメータの実行時表示注釈のリスト
      戻り値:
      RuntimeVisibleParameterAnnotations属性