Module org.glavo.classfile
Package org.glavo.classfile.attribute
Interface RuntimeVisibleParameterAnnotationsAttribute
- All Superinterfaces:
Attribute<RuntimeVisibleParameterAnnotationsAttribute>,ClassfileElement,MethodElement,WritableElement<RuntimeVisibleParameterAnnotationsAttribute>
- All Known Implementing Classes:
BoundAttribute.BoundRuntimeVisibleParameterAnnotationsAttribute,UnboundAttribute.UnboundRuntimeVisibleParameterAnnotationsAttribute
public sealed interface RuntimeVisibleParameterAnnotationsAttribute
extends Attribute<RuntimeVisibleParameterAnnotationsAttribute>, MethodElement
permits BoundAttribute.BoundRuntimeVisibleParameterAnnotationsAttribute, UnboundAttribute.UnboundRuntimeVisibleParameterAnnotationsAttribute
Models the
RuntimeVisibleParameterAnnotations attribute , which
can appear on methods. Delivered as a MethodElement
when traversing a MethodModel.-
Method Summary
Modifier and TypeMethodDescriptionof(List<List<Annotation>> parameterAnnotations) Returns aRuntimeVisibleParameterAnnotationsattribute.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
Returns aRuntimeVisibleParameterAnnotationsattribute.- Parameters:
parameterAnnotations- a list of parameter annotations for each parameter- Returns:
- a
RuntimeVisibleParameterAnnotationsattribute
-