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 AnnotationValueof(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:
getValuein interfaceAnnotationValue
-
toString
- Specified by:
toStringin interfaceAnnotationValue- Overrides:
toStringin classObject
-
accept
- Specified by:
acceptin interfaceAnnotationValue
-