Class QualifierDefaults.DefaultApplierElementImpl
java.lang.Object
org.checkerframework.framework.type.visitor.AnnotatedTypeScanner<Void,Void>
org.checkerframework.framework.util.defaults.QualifierDefaults.DefaultApplierElementImpl
- All Implemented Interfaces:
AnnotatedTypeVisitor<Void,Void>
- Enclosing class:
QualifierDefaults
The implementation of default application as an annotated type scanner.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.checkerframework.framework.type.visitor.AnnotatedTypeScanner
AnnotatedTypeScanner.Reduce<R> -
Field Summary
Fields inherited from class org.checkerframework.framework.type.visitor.AnnotatedTypeScanner
defaultResult, reduceFunction, VISITED_NODES_INITIAL_CAPACITY -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedConstruct a new instance. -
Method Summary
Modifier and TypeMethodDescriptionvoidreset()Reset the scanner to allow reuse of the same instance.scan(AnnotatedTypeMirror t, Void unusedQual) Scantypeby callingtype.accept(this, p); this method may be overridden by subclasses.protected voidvisitBounds(AnnotatedTypeMirror boundedType, AnnotatedTypeMirror upperBound, AnnotatedTypeMirror lowerBound, boolean isTypeVar) Visit the bounds of a type variable or a wildcard and potentially apply qual to those bounds.visitTypeVariable(AnnotatedTypeMirror.AnnotatedTypeVariable type, Void unusedQual) Visits a type variable.visitWildcard(AnnotatedTypeMirror.AnnotatedWildcardType type, Void unusedQual) Visits a wildcard type.Methods inherited from class org.checkerframework.framework.type.visitor.AnnotatedTypeScanner
getVisited, hasVisited, markVisited, reduce, scan, scanAndReduce, scanAndReduce, visit, visit, visitArray, visitDeclared, visitExecutable, visitIntersection, visitNoType, visitNull, visitPrimitive, visitUnion
-
Constructor Details
-
DefaultApplierElementImpl
Construct a new instance.- Parameters:
outer- the outer instance to use
-
-
Method Details
-
scan
Description copied from class:AnnotatedTypeScannerScantypeby callingtype.accept(this, p); this method may be overridden by subclasses.- Overrides:
scanin classAnnotatedTypeScanner<Void,Void> - Parameters:
t- type to scanunusedQual- the parameter to use- Returns:
- the result of visiting
type
-
reset
public void reset()Description copied from class:AnnotatedTypeScannerReset the scanner to allow reuse of the same instance. Subclasses should override this method to clear their additional state; they must call the super implementation.- Overrides:
resetin classAnnotatedTypeScanner<Void,Void>
-
visitTypeVariable
public Void visitTypeVariable(@FindDistinct AnnotatedTypeMirror.AnnotatedTypeVariable type, Void unusedQual) Description copied from interface:AnnotatedTypeVisitorVisits a type variable.- Specified by:
visitTypeVariablein interfaceAnnotatedTypeVisitor<Void,Void> - Overrides:
visitTypeVariablein classAnnotatedTypeScanner<Void,Void> - Parameters:
type- the type to visitunusedQual- a visitor-specified parameter- Returns:
- a visitor-specified result
-
visitWildcard
Description copied from interface:AnnotatedTypeVisitorVisits a wildcard type.- Specified by:
visitWildcardin interfaceAnnotatedTypeVisitor<Void,Void> - Overrides:
visitWildcardin classAnnotatedTypeScanner<Void,Void> - Parameters:
type- the type to visitunusedQual- a visitor-specified parameter- Returns:
- a visitor-specified result
-
visitBounds
protected void visitBounds(AnnotatedTypeMirror boundedType, AnnotatedTypeMirror upperBound, AnnotatedTypeMirror lowerBound, boolean isTypeVar) Visit the bounds of a type variable or a wildcard and potentially apply qual to those bounds. This method will also update the boundType, isLowerBound, and isUpperbound fields.
-