public final class SimpleTypeAnnotationValue
extends java.lang.Object
implements javax.lang.model.element.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(javax.lang.model.element.AnnotationValueVisitor<R,P> visitor,
P parameter) |
javax.lang.model.type.TypeMirror |
getValue() |
static javax.lang.model.element.AnnotationValue |
of(javax.lang.model.type.TypeMirror value)
An object representing an annotation value instance.
|
java.lang.String |
toString() |
public static javax.lang.model.element.AnnotationValue of(javax.lang.model.type.TypeMirror value)
value - a primitive, array, or non-parameterized declared typepublic javax.lang.model.type.TypeMirror getValue()
getValue in interface javax.lang.model.element.AnnotationValuepublic java.lang.String toString()
toString in interface javax.lang.model.element.AnnotationValuetoString in class java.lang.Objectpublic <R,P> R accept(javax.lang.model.element.AnnotationValueVisitor<R,P> visitor,
P parameter)
accept in interface javax.lang.model.element.AnnotationValueCopyright © 2018 Google, Inc.. All Rights Reserved.