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 classprivate static classprivate static classVisitor 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 voidappendEscaped(StringBuilder sb, char c) private static StringBuilderappendQuoted(StringBuilder sb, char c) private static StringBuilderappendQuoted(StringBuilder sb, String s) (package private) static StringsourceFormForAnnotation(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 StringsourceFormForInitializer(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
-