Package com.google.auto.common
Class SimpleTypeAnnotationValue
- java.lang.Object
-
- com.google.auto.common.SimpleTypeAnnotationValue
-
- All Implemented Interfaces:
AnnotationValue
public final class SimpleTypeAnnotationValue extends Object implements AnnotationValue
A simple implementation of theAnnotationValue
interface for a class literal, e.g. an annotation member of typeClass<?>
orClass<? extends Foo>
.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description <R,P>
Raccept(AnnotationValueVisitor<R,P> visitor, P parameter)
TypeMirror
getValue()
static AnnotationValue
of(TypeMirror value)
An object representing an annotation value instance.String
toString()
-
-
-
Method Detail
-
of
public static AnnotationValue of(TypeMirror value)
An object representing an annotation value instance.- Parameters:
value
- a primitive, array, or non-parameterized declared type
-
getValue
public TypeMirror getValue()
- Specified by:
getValue
in interfaceAnnotationValue
-
toString
public String toString()
- Specified by:
toString
in interfaceAnnotationValue
- Overrides:
toString
in classObject
-
accept
public <R,P> R accept(AnnotationValueVisitor<R,P> visitor, P parameter)
- Specified by:
accept
in interfaceAnnotationValue
-
-