public final class SimpleTypeAnnotationValue extends Object implements AnnotationValue
AnnotationValue
interface for a class literal, e.g. an
annotation member of type Class<?>
or Class<? extends Foo>
.Modifier and Type | Method and Description |
---|---|
<R,P> R |
accept(AnnotationValueVisitor<R,P> visitor,
P parameter) |
TypeMirror |
getValue() |
static AnnotationValue |
of(TypeMirror value)
An object representing an annotation value instance.
|
String |
toString() |
public static AnnotationValue of(TypeMirror value)
value
- a primitive, array, or non-parameterized declared typepublic TypeMirror getValue()
getValue
in interface AnnotationValue
public String toString()
toString
in interface AnnotationValue
toString
in class Object
public <R,P> R accept(AnnotationValueVisitor<R,P> visitor, P parameter)
accept
in interface AnnotationValue
Copyright © 2020. All rights reserved.