Class AnnotationOutput

java.lang.Object
com.google.auto.value.processor.AnnotationOutput

final class AnnotationOutput extends Object
Handling of default values for annotation members.
  • 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

      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.
    • appendQuoted

      private static StringBuilder appendQuoted(StringBuilder sb, String s)
    • appendQuoted

      private static StringBuilder appendQuoted(StringBuilder sb, char c)
    • appendEscaped

      private static void appendEscaped(StringBuilder sb, char c)