protected static class DefaultAnnotatedTypeFormatter.FormattingVisitor extends Object implements AnnotatedTypeVisitor<String,Set<AnnotatedTypeMirror>>
| Modifier and Type | Field and Description | 
|---|---|
| protected AnnotationFormatter | annoFormatterThe object responsible for converting annotations to strings | 
| protected boolean | currentPrintInvisibleSettingFor a given call to format, this setting specifies whether or not to printInvisibles. | 
| protected boolean | currentPrintVerboseGenericsPrints type variables in a less ambiguous manner using [] to delimit them. | 
| protected boolean | defaultInvisiblesSettingRepresents whether or not invisible annotations should be printed if the client of this
 class does not use the printInvisibleAnnos parameter | 
| protected boolean | defaultPrintVerboseGenericsDefault value of currentPrintVerboseGenerics | 
| Constructor and Description | 
|---|
| FormattingVisitor(AnnotationFormatter annoFormatter,
                 boolean printVerboseGenerics,
                 boolean defaultInvisiblesSetting) | 
protected final AnnotationFormatter annoFormatter
protected final boolean defaultInvisiblesSetting
protected boolean currentPrintInvisibleSetting
protected final boolean defaultPrintVerboseGenerics
protected boolean currentPrintVerboseGenerics
public FormattingVisitor(AnnotationFormatter annoFormatter, boolean printVerboseGenerics, boolean defaultInvisiblesSetting)
protected void setVerboseSettings(boolean printVerbose)
protected void resetPrintVerboseSettings()
@SideEffectFree protected void printBound(String keyWord, AnnotatedTypeMirror field, Set<AnnotatedTypeMirror> visiting, StringBuilder sb)
@SideEffectFree public String visit(AnnotatedTypeMirror type)
AnnotatedTypeVisitorv.visit(t, null).visit in interface AnnotatedTypeVisitor<String,Set<AnnotatedTypeMirror>>type - the type to visitpublic String visit(AnnotatedTypeMirror type, Set<AnnotatedTypeMirror> annotatedTypeVariables)
AnnotatedTypeVisitorvisit in interface AnnotatedTypeVisitor<String,Set<AnnotatedTypeMirror>>type - the type to visitannotatedTypeVariables - a visitor-specified parameterpublic String visitDeclared(AnnotatedTypeMirror.AnnotatedDeclaredType type, Set<AnnotatedTypeMirror> visiting)
AnnotatedTypeVisitorvisitDeclared in interface AnnotatedTypeVisitor<String,Set<AnnotatedTypeMirror>>type - the type to visitvisiting - a visitor-specified parameterpublic String visitIntersection(AnnotatedTypeMirror.AnnotatedIntersectionType type, Set<AnnotatedTypeMirror> visiting)
AnnotatedTypeVisitorvisitIntersection in interface AnnotatedTypeVisitor<String,Set<AnnotatedTypeMirror>>type - the type to visitvisiting - a visitor-specified parameterpublic String visitUnion(AnnotatedTypeMirror.AnnotatedUnionType type, Set<AnnotatedTypeMirror> visiting)
AnnotatedTypeVisitorvisitUnion in interface AnnotatedTypeVisitor<String,Set<AnnotatedTypeMirror>>type - the type to visitvisiting - a visitor-specified parameterpublic String visitExecutable(AnnotatedTypeMirror.AnnotatedExecutableType type, Set<AnnotatedTypeMirror> visiting)
AnnotatedTypeVisitorvisitExecutable in interface AnnotatedTypeVisitor<String,Set<AnnotatedTypeMirror>>type - the type to visitvisiting - a visitor-specified parameterpublic String visitArray(AnnotatedTypeMirror.AnnotatedArrayType type, Set<AnnotatedTypeMirror> visiting)
AnnotatedTypeVisitorvisitArray in interface AnnotatedTypeVisitor<String,Set<AnnotatedTypeMirror>>type - the type to visitvisiting - a visitor-specified parameterpublic String visitTypeVariable(AnnotatedTypeMirror.AnnotatedTypeVariable type, Set<AnnotatedTypeMirror> visiting)
AnnotatedTypeVisitorvisitTypeVariable in interface AnnotatedTypeVisitor<String,Set<AnnotatedTypeMirror>>type - the type to visitvisiting - a visitor-specified parameter@SideEffectFree public String visitPrimitive(AnnotatedTypeMirror.AnnotatedPrimitiveType type, Set<AnnotatedTypeMirror> visiting)
AnnotatedTypeVisitorvisitPrimitive in interface AnnotatedTypeVisitor<String,Set<AnnotatedTypeMirror>>type - the type to visitvisiting - a visitor-specified parameter@SideEffectFree public String visitNoType(AnnotatedTypeMirror.AnnotatedNoType type, Set<AnnotatedTypeMirror> visiting)
AnnotatedTypeVisitorvisitNoType in interface AnnotatedTypeVisitor<String,Set<AnnotatedTypeMirror>>type - the type to visitvisiting - a visitor-specified parameter@SideEffectFree public String visitNull(AnnotatedTypeMirror.AnnotatedNullType type, Set<AnnotatedTypeMirror> visiting)
AnnotatedTypeVisitornull type.visitNull in interface AnnotatedTypeVisitor<String,Set<AnnotatedTypeMirror>>type - the type to visitvisiting - a visitor-specified parameterpublic String visitWildcard(AnnotatedTypeMirror.AnnotatedWildcardType type, Set<AnnotatedTypeMirror> visiting)
AnnotatedTypeVisitorvisitWildcard in interface AnnotatedTypeVisitor<String,Set<AnnotatedTypeMirror>>type - the type to visitvisiting - a visitor-specified parameter@SideEffectFree protected String formatFlatType(AnnotatedTypeMirror flatType)