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 AnnotationValuepublic String toString()
toString in interface AnnotationValuetoString in class Objectpublic <R,P> R accept(AnnotationValueVisitor<R,P> visitor, P parameter)
accept in interface AnnotationValueCopyright © 2022. All rights reserved.