AnnotationValue interface for a class literal, e.g. an
annotation member of type Class<?> or Class<? extends Foo>.
| Modifier and Type | Field and Description |
|---|---|
| private final TypeMirror |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public <R, P> R | accept(AnnotationValueVisitor<R, P>
the visitor operating on this value visitor, P additional parameter to the visitor parameter)Implements javax. |
| public TypeMirror | |
| public static AnnotationValue | of(TypeMirror
a primitive, array, or non-parameterized declared type value)An object representing an annotation value instance. |
| public String | toString()
Overrides java. Implements javax. |
| value | back to summary |
|---|---|
| private final TypeMirror value | |
| SimpleTypeAnnotationValue | back to summary |
|---|---|
| private SimpleTypeAnnotationValue(TypeMirror value) | |
| accept | back to summary |
|---|---|
| public <R, P> R accept(AnnotationValueVisitor<R, P> visitor, P parameter) Implements javax. Doc from javax. Applies a visitor to this value.
| |
| getValue | back to summary |
|---|---|
| public TypeMirror getValue() Implements javax. Doc from javax. Returns the value.
| |
| of | back to summary |
|---|---|
| public static AnnotationValue of(TypeMirror value) An object representing an annotation value instance.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Implements javax. Doc from javax. Returns a string representation of this value. This is returned in a form suitable for representing this value in the source code of an annotation. | |