Top Description Methods
java.lang.classfile.attribute

public sealed Interface RuntimeInvisibleParameterAnnotationsAttribute

extends Attribute<RuntimeInvisibleParameterAnnotationsAttribute>, MethodElement
Known Direct Implementers
jdk.internal.classfile.impl.BoundAttribute.BoundRuntimeInvisibleParameterAnnotationsAttribute, jdk.internal.classfile.impl.UnboundAttribute.UnboundRuntimeInvisibleParameterAnnotationsAttribute
Annotations
@PreviewFeature
feature:CLASSFILE_API
Imports
java.util.List, java.lang.classfile.Annotation, .Attribute, .MethodElement, .MethodModel, jdk.internal.classfile.impl.BoundAttribute, .UnboundAttribute, jdk.internal.javac.PreviewFeature

Models the RuntimeInvisibleParameterAnnotations attribute 4.7.19, which can appear on methods. Delivered as a java.lang.classfile.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 TypeMethod and Description
public static RuntimeInvisibleParameterAnnotationsAttribute

Returns:

a RuntimeInvisibleParameterAnnotations attribute
of
(List<List<Annotation>>
a list of parameter annotations for each parameter
parameterAnnotations
)

Returns a RuntimeInvisibleParameterAnnotations attribute.

public List<List<Annotation>>

Returns:

the list of annotations corresponding to each method parameter
parameterAnnotations
()

Returns the list of annotations corresponding to each method parameter.

Inherited from java.lang.classfile.Attribute:
attributeMapperattributeName

Method Detail

ofback to summary
public static RuntimeInvisibleParameterAnnotationsAttribute of(List<List<Annotation>> parameterAnnotations)

Returns a RuntimeInvisibleParameterAnnotations attribute.

Parameters
parameterAnnotations:List<List<Annotation>>

a list of parameter annotations for each parameter

Returns:RuntimeInvisibleParameterAnnotationsAttribute

a RuntimeInvisibleParameterAnnotations attribute

parameterAnnotationsback to summary
public 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:List<List<Annotation>>

the list of annotations corresponding to each method parameter