Class NullnessNoInitAnnotatedTypeFormatter.NullnessFormattingVisitor
java.lang.Object
org.checkerframework.framework.type.DefaultAnnotatedTypeFormatter.FormattingVisitor
org.checkerframework.checker.nullness.NullnessNoInitAnnotatedTypeFormatter.NullnessFormattingVisitor
- All Implemented Interfaces:
AnnotatedTypeVisitor<String,Set<AnnotatedTypeMirror>>
- Enclosing class:
NullnessNoInitAnnotatedTypeFormatter
protected static class NullnessNoInitAnnotatedTypeFormatter.NullnessFormattingVisitor
extends DefaultAnnotatedTypeFormatter.FormattingVisitor
The visitor used by the
NullnessNoInitAnnotatedTypeFormatter.-
Field Summary
Fields inherited from class org.checkerframework.framework.type.DefaultAnnotatedTypeFormatter.FormattingVisitor
annoFormatter, currentlyPrintingRaw, currentPrintInvisibleSetting, currentPrintVerboseGenerics, defaultInvisiblesSetting, defaultPrintVerboseGenerics -
Constructor Summary
ConstructorsConstructorDescriptionNullnessFormattingVisitor(AnnotationFormatter annoFormatter, boolean printVerboseGenerics, boolean defaultInvisiblesSetting) Create a new NullnessFormattingVisitor. -
Method Summary
Modifier and TypeMethodDescriptionvisitNull(AnnotatedTypeMirror.AnnotatedNullType type, Set<AnnotatedTypeMirror> visiting) Visits anulltype.Methods inherited from class org.checkerframework.framework.type.DefaultAnnotatedTypeFormatter.FormattingVisitor
formatFlatType, printBound, resetPrintVerboseSettings, setVerboseSettings, visit, visit, visitArray, visitDeclared, visitExecutable, visitIntersection, visitNoType, visitPrimitive, visitTypeVariable, visitUnion, visitWildcard
-
Constructor Details
-
NullnessFormattingVisitor
public NullnessFormattingVisitor(AnnotationFormatter annoFormatter, boolean printVerboseGenerics, boolean defaultInvisiblesSetting) Create a new NullnessFormattingVisitor.- Parameters:
annoFormatter- the formatter to useprintVerboseGenerics- whether to print type variables in a less ambiguous manner using[]to delimit boundsdefaultInvisiblesSetting- whether or not to print invisible qualifiers
-
-
Method Details
-
visitNull
public String visitNull(AnnotatedTypeMirror.AnnotatedNullType type, Set<AnnotatedTypeMirror> visiting) Description copied from interface:AnnotatedTypeVisitorVisits anulltype.- Specified by:
visitNullin interfaceAnnotatedTypeVisitor<String,Set<AnnotatedTypeMirror>> - Overrides:
visitNullin classDefaultAnnotatedTypeFormatter.FormattingVisitor- Parameters:
type- the type to visitvisiting- a visitor-specified parameter- Returns:
- a visitor-specified result
-