RuntimeVisibleAnnotations attribute (JVMS 4.7.16), which stores
declaration annotations on this structure that are visible to both
class file consumers and core reflection.
This attribute appears on classes, fields, methods, and record components, and does not permit multiple instances in one structure. It has a data dependency on the constant pool.
The attribute was introduced in the Java SE Platform version 5.0, major version 49.
RuntimeVisibleAnnotations Attribute
Attributes#runtimeVisibleAnnotations(), java.compiler/javax.lang.model.element.Element , AnnotatedElement, ElementType, RetentionPolicy#RUNTIME
| Modifier and Type | Method and Description |
|---|---|
| public List | Returns: the run-time visible declaration annotations on this structureReturns the run-time visible declaration annotations on this structure. |
| public static RuntimeVisibleAnnotationsAttribute | Returns: aRuntimeVisibleAnnotations attributethe annotations annotations)Returns a |
| public static RuntimeVisibleAnnotationsAttribute | Returns: aRuntimeVisibleAnnotations attributethe annotations annotations)Returns a |
| annotations | back to summary |
|---|---|
| public List Returns the run-time visible declaration annotations on this structure.
| |
| of | back to summary |
|---|---|
| public static RuntimeVisibleAnnotationsAttribute of(List<Annotation> annotations) Returns a
| |
| of | back to summary |
|---|---|
| public static RuntimeVisibleAnnotationsAttribute of(Annotation... annotations) Returns a
| |