Package com.google.auto.value.processor
Class AnnotationOutput
java.lang.Object
com.google.auto.value.processor.AnnotationOutput
Handling of default values for annotation members.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static class
private static class
private static class
Visitor that produces a string representation of an annotation value, suitable for inclusion in a Java source file as an annotation member or as the initializer of a variable of the appropriate type. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static void
appendEscaped
(StringBuilder sb, char c) private static StringBuilder
appendQuoted
(StringBuilder sb, char c) private static StringBuilder
appendQuoted
(StringBuilder sb, String s) (package private) static String
sourceFormForAnnotation
(AnnotationMirror annotationMirror) Returns a string representation of the given annotation mirror, suitable for inclusion in a Java source file to reproduce the annotation in source form.(package private) static String
sourceFormForInitializer
(AnnotationValue annotationValue, ProcessingEnvironment processingEnv, String memberName, Element context) Returns a string representation of the given annotation value, suitable for inclusion in a Java source file as the initializer of a variable of the appropriate type.
-
Constructor Details
-
AnnotationOutput
private AnnotationOutput()
-
-
Method Details
-
sourceFormForInitializer
static String sourceFormForInitializer(AnnotationValue annotationValue, ProcessingEnvironment processingEnv, String memberName, Element context) Returns a string representation of the given annotation value, suitable for inclusion in a Java source file as the initializer of a variable of the appropriate type. -
sourceFormForAnnotation
Returns a string representation of the given annotation mirror, suitable for inclusion in a Java source file to reproduce the annotation in source form. -
appendQuoted
-
appendQuoted
-
appendEscaped
-