インタフェース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
- 関連項目:
-
メソッドのサマリー
修飾子と型メソッド説明of
(List<List<Annotation>> parameterAnnotations) RuntimeVisibleParameterAnnotations
属性を返します。メソッド・パラメータの実行時表示注釈のリストを返します。インタフェースjava.lang.classfile.Attributeで宣言されたメソッド
attributeMapper, attributeName
-
メソッドの詳細
-
parameterAnnotations
List<List<Annotation>> parameterAnnotations()メソッド・パラメータの実行時表示注釈のリストを返します。 i番目の索引の要素は、i番目の仮パラメータの注釈に対応していますが、このリストでは一部の合成パラメータまたは暗黙的なパラメータが省略される可能性があることに注意してください。 パラメータに注釈がない場合、その要素は空のままですが、省略されません。したがって、末尾のパラメータに注釈が付けられていないため、リストは切り捨てられません。- 戻り値:
- メソッド・パラメータでのランタイム表示注釈のリスト
- 関連項目:
-
of
static RuntimeVisibleParameterAnnotationsAttribute of(List<List<Annotation>> parameterAnnotations) RuntimeVisibleParameterAnnotations
属性を返します。parameterAnnotations
リストは切り捨ててはいけません。また、仮パラメータの数と同じ長さにする必要があります。注釈なしパラメータの要素は空にできますが、省略することはできません。 いくつかの合成パラメータまたは暗黙的なパラメータは省略できます。- パラメータ:
parameterAnnotations
- 各パラメータの実行時表示注釈のリスト- 戻り値:
RuntimeVisibleParameterAnnotations
属性
-