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 theAnnotationValueinterface 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)TypeMirrorgetValue()static AnnotationValueof(TypeMirror value)An object representing an annotation value instance.StringtoString()
-
-
-
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:
getValuein interfaceAnnotationValue
-
toString
public String toString()
- Specified by:
toStringin interfaceAnnotationValue- Overrides:
toStringin classObject
-
accept
public <R,P> R accept(AnnotationValueVisitor<R,P> visitor, P parameter)
- Specified by:
acceptin interfaceAnnotationValue
-
-