Module org.glavo.classfile
Package org.glavo.classfile.attribute
Interface RuntimeInvisibleAnnotationsAttribute
- All Superinterfaces:
Attribute<RuntimeInvisibleAnnotationsAttribute>,ClassElement,ClassFileElement,FieldElement,MethodElement,WritableElement<RuntimeInvisibleAnnotationsAttribute>
- All Known Implementing Classes:
BoundAttribute.BoundRuntimeInvisibleAnnotationsAttribute,UnboundAttribute.UnboundRuntimeInvisibleAnnotationsAttribute
public sealed interface RuntimeInvisibleAnnotationsAttribute
extends Attribute<RuntimeInvisibleAnnotationsAttribute>, ClassElement, MethodElement, FieldElement
permits BoundAttribute.BoundRuntimeInvisibleAnnotationsAttribute, UnboundAttribute.UnboundRuntimeInvisibleAnnotationsAttribute
Models the
RuntimeInvisibleAnnotations attribute , which
can appear on classes, methods, and fields. Delivered as a
ClassElement, FieldElement, or
MethodElement when traversing the corresponding model type.
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 TypeMethodDescriptionReturns the non-runtime-visible annotations on this class, field, or method.of(List<Annotation> annotations) Returns aRuntimeInvisibleAnnotationsattribute.of(Annotation... annotations) Returns aRuntimeInvisibleAnnotationsattribute.Methods inherited from interface org.glavo.classfile.Attribute
attributeMapper, attributeNameMethods inherited from interface org.glavo.classfile.WritableElement
writeTo
-
Method Details
-
annotations
List<Annotation> annotations()Returns the non-runtime-visible annotations on this class, field, or method.- Returns:
- the non-runtime-visible annotations on this class, field, or method
-
of
Returns aRuntimeInvisibleAnnotationsattribute.- Parameters:
annotations- the annotations- Returns:
- a
RuntimeInvisibleAnnotationsattribute
-
of
Returns aRuntimeInvisibleAnnotationsattribute.- Parameters:
annotations- the annotations- Returns:
- a
RuntimeInvisibleAnnotationsattribute
-