AnnotationDefault attribute
(JVMS 4.7.22), which records the default value (JLS 9.6.2) for
the annotation interface element defined by this method.
This attribute only appears on methods, and does not permit multiple instances in a method. It has a data dependency on the constant pool.
This attribute was introduced in the Java SE Platform version 5.0, major version 49.
AnnotationDefault Attribute
Attributes#annotationDefault()
| Modifier and Type | Method and Description |
|---|---|
| public AnnotationValue | Returns: the default value of the annotation interface element defined by the enclosing methodReturns the default value of the annotation interface element defined by the enclosing method. |
| public static AnnotationDefaultAttribute | Returns: anAnnotationDefault attributethe default value of the annotation interface element annotationDefault)Returns an |
| defaultValue | back to summary |
|---|---|
| public AnnotationValue defaultValue() Returns the default value of the annotation interface element defined by the enclosing method.
| |
| of | back to summary |
|---|---|
| public static AnnotationDefaultAttribute of(AnnotationValue annotationDefault) Returns an
| |