Preview
Second Preview of ClassFile API (JEP 466).
Programs can only use RuntimeVisibleParameterAnnotationsAttribute
when preview features are enabled.
Preview features may be removed in a future release,
or upgraded to permanent features of the Java platform.
RuntimeVisibleParameterAnnotations
attribute 4.7.18, which
can appear on methods. Delivered as a java.lang.classfile.MethodElement
when traversing a MethodModel
.
API Note
The attribute does not permit multiple instances in a given location. Subsequent occurrence of the attribute takes precedence during the attributed element build or transformation.
The attribute was introduced in the Java SE Platform version 5.0.
Modifier and Type | Method and Description |
---|---|
public static RuntimeVisibleParameterAnnotationsAttribute | Returns: aRuntimeVisibleParameterAnnotations attributea list of parameter annotations for each parameter parameterAnnotations)Returns a |
public List | Returns: the list of annotations corresponding to each method parameterReturns the list of annotations corresponding to each method parameter. |
of | back to summary |
---|---|
public static RuntimeVisibleParameterAnnotationsAttribute of(List<List<Annotation>> parameterAnnotations) Returns a
|
parameterAnnotations | back to summary |
---|---|
public List Returns the list of annotations corresponding to each method parameter. The element at the i'th index corresponds to the annotations on the i'th parameter.
|