element_value_pairs
table in the annotation structure defined in JVMS
4.7.16 or the type_annotation structure defined
in JVMS 4.7.20.
Two AnnotationElement objects should be compared using the
equals method.
element_value structure
Annotation, Annotations in core reflection
| Modifier and Type | Method and Description |
|---|---|
| public Utf8Entry | |
| public static AnnotationElement | Returns: an element-value pairthe name of the key name, AnnotationValue the associated value value)Returns an element-value pair. |
| public static AnnotationElement | Returns: an element-value pairthe name of the key name, AnnotationValue the associated value value)Returns an element-value pair. |
| public static AnnotationElement | Returns: an element-value pair for an annotation-valued elementthe name of the key name, Annotation the associated value value)Returns an element-value pair for an annotation-valued element. |
| public static AnnotationElement | Returns: an element-value pair for an array-valued elementthe name of the key name, AnnotationValue... the associated values values)Returns an element-value pair for an array-valued element. |
| public static AnnotationElement | |
| public static AnnotationElement | |
| public static AnnotationElement | |
| public static AnnotationElement | |
| public static AnnotationElement | |
| public static AnnotationElement | |
| public static AnnotationElement | |
| public static AnnotationElement | |
| public static AnnotationElement | |
| public static AnnotationElement | |
| public AnnotationValue |
| name | back to summary |
|---|---|
| public Utf8Entry name() Returns the element name. API Note In Java source code, by convention, the name of the sole element in a
single-element annotation interface is
| |
| of | back to summary |
|---|---|
| public static AnnotationElement of(Utf8Entry name, AnnotationValue value) Returns an element-value pair.
| |
| of | back to summary |
|---|---|
| public static AnnotationElement of(String name, AnnotationValue value) Returns an element-value pair.
| |
| ofAnnotation | back to summary |
|---|---|
| public static AnnotationElement ofAnnotation(String name, Annotation value) Returns an element-value pair for an annotation-valued element.
| |
| ofArray | back to summary |
|---|---|
| public static AnnotationElement ofArray(String name, AnnotationValue... values) Returns an element-value pair for an array-valued element.
| |
| ofBoolean | back to summary |
|---|---|
| public static AnnotationElement ofBoolean(String name, boolean value) Returns an element-value pair for a boolean-valued element.
| |
| ofByte | back to summary |
|---|---|
| public static AnnotationElement ofByte(String name, byte value) Returns an element-value pair for a byte-valued element.
| |
| ofChar | back to summary |
|---|---|
| public static AnnotationElement ofChar(String name, char value) Returns an element-value pair for a char-valued element.
| |
| ofClass | back to summary |
|---|---|
| public static AnnotationElement ofClass(String name, ClassDesc value) Returns an element-value pair for a class-valued element.
| |
| ofDouble | back to summary |
|---|---|
| public static AnnotationElement ofDouble(String name, double value) Returns an element-value pair for a double-valued element.
| |
| ofFloat | back to summary |
|---|---|
| public static AnnotationElement ofFloat(String name, float value) Returns an element-value pair for a float-valued element.
| |
| ofInt | back to summary |
|---|---|
| public static AnnotationElement ofInt(String name, int value) Returns an element-value pair for an int-valued element.
| |
| ofLong | back to summary |
|---|---|
| public static AnnotationElement ofLong(String name, long value) Returns an element-value pair for a long-valued element.
| |
| ofShort | back to summary |
|---|---|
| public static AnnotationElement ofShort(String name, short value) Returns an element-value pair for a short-valued element.
| |
| ofString | back to summary |
|---|---|
| public static AnnotationElement ofString(String name, String value) Returns an element-value pair for a string-valued element.
| |
| value | back to summary |
|---|---|
| public AnnotationValue value() Returns the element value.
| |