Package com.google.auto.common
Class SimpleTypeAnnotationValue
java.lang.Object
com.google.auto.common.SimpleTypeAnnotationValue
- All Implemented Interfaces:
AnnotationValue
A simple implementation of the
AnnotationValue
interface for a class literal, e.g. an
annotation member of type Class<?>
or Class<? extends Foo>
.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<R,
P> R accept
(AnnotationValueVisitor<R, P> visitor, P parameter) getValue()
static AnnotationValue
of
(TypeMirror value) An object representing an annotation value instance.toString()
-
Field Details
-
value
-
-
Constructor Details
-
SimpleTypeAnnotationValue
-
-
Method Details
-
of
An object representing an annotation value instance.- Parameters:
value
- a primitive, array, or non-parameterized declared type
-
getValue
- Specified by:
getValue
in interfaceAnnotationValue
-
toString
- Specified by:
toString
in interfaceAnnotationValue
- Overrides:
toString
in classObject
-
accept
- Specified by:
accept
in interfaceAnnotationValue
-