Module org.glavo.classfile
Package org.glavo.classfile.attribute
Interface RuntimeInvisibleParameterAnnotationsAttribute
- All Superinterfaces:
Attribute<RuntimeInvisibleParameterAnnotationsAttribute>,ClassFileElement,MethodElement,WritableElement<RuntimeInvisibleParameterAnnotationsAttribute>
- All Known Implementing Classes:
BoundAttribute.BoundRuntimeInvisibleParameterAnnotationsAttribute,UnboundAttribute.UnboundRuntimeInvisibleParameterAnnotationsAttribute
public sealed interface RuntimeInvisibleParameterAnnotationsAttribute
extends Attribute<RuntimeInvisibleParameterAnnotationsAttribute>, MethodElement
permits BoundAttribute.BoundRuntimeInvisibleParameterAnnotationsAttribute, UnboundAttribute.UnboundRuntimeInvisibleParameterAnnotationsAttribute
Models the
RuntimeInvisibleParameterAnnotations attribute
, which can appear on methods. Delivered as a MethodElement when traversing a MethodModel.
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.
- Since:
- 22
-
Method Summary
Modifier and TypeMethodDescriptionof(List<List<Annotation>> parameterAnnotations) Returns aRuntimeInvisibleParameterAnnotationsattribute.Returns the list of annotations corresponding to each method parameter.Methods inherited from interface org.glavo.classfile.Attribute
attributeMapper, attributeNameMethods inherited from interface org.glavo.classfile.WritableElement
writeTo
-
Method Details
-
parameterAnnotations
List<List<Annotation>> parameterAnnotations()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.- Returns:
- the list of annotations corresponding to each method parameter
-
of
static RuntimeInvisibleParameterAnnotationsAttribute of(List<List<Annotation>> parameterAnnotations) Returns aRuntimeInvisibleParameterAnnotationsattribute.- Parameters:
parameterAnnotations- a list of parameter annotations for each parameter- Returns:
- a
RuntimeInvisibleParameterAnnotationsattribute
-