Class AnnotationOutput.SourceFormVisitor

All Implemented Interfaces:
AnnotationValueVisitor<Void,StringBuilder>
Direct Known Subclasses:
AnnotationOutput.AnnotationSourceFormVisitor, AnnotationOutput.InitializerSourceFormVisitor
Enclosing class:
AnnotationOutput

private abstract static class AnnotationOutput.SourceFormVisitor extends SimpleAnnotationValueVisitor8<Void,StringBuilder>
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. The syntax for the two is the same except for annotation members that are themselves annotations. Within an annotation, an annotation member can be written as @NestedAnnotation(...), while in an initializer it must be written as an object, for example the construction of an @AutoAnnotation class. That's why we have this abstract class and two concrete subclasses.