Class MustCallTypeAnnotator
java.lang.Object
org.checkerframework.framework.type.visitor.AnnotatedTypeScanner<Void,Void>
org.checkerframework.framework.type.typeannotator.TypeAnnotator
org.checkerframework.checker.mustcall.MustCallTypeAnnotator
- All Implemented Interfaces:
AnnotatedTypeVisitor<Void,
Void>
Primitive types always have no must-call obligations.
-
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.typeannotator.TypeAnnotator
atypeFactory
Fields inherited from class org.checkerframework.framework.type.visitor.AnnotatedTypeScanner
defaultResult, reduceFunction, visitedNodes
-
Constructor Summary
ModifierConstructorDescriptionprotected
MustCallTypeAnnotator
(MustCallAnnotatedTypeFactory typeFactory) Create a MustCallTypeAnnotator. -
Method Summary
Modifier and TypeMethodDescriptionvisitPrimitive
(AnnotatedTypeMirror.AnnotatedPrimitiveType type, Void aVoid) Visits a primitive type.Methods inherited from class org.checkerframework.framework.type.typeannotator.TypeAnnotator
visitExecutable
Methods inherited from class org.checkerframework.framework.type.visitor.AnnotatedTypeScanner
reduce, reset, scan, scan, scanAndReduce, scanAndReduce, visit, visit, visitArray, visitDeclared, visitIntersection, visitNoType, visitNull, visitTypeVariable, visitUnion, visitWildcard
-
Constructor Details
-
MustCallTypeAnnotator
Create a MustCallTypeAnnotator.- Parameters:
typeFactory
- the type factory
-
-
Method Details
-
visitPrimitive
Description copied from interface:AnnotatedTypeVisitor
Visits a primitive type.- Specified by:
visitPrimitive
in interfaceAnnotatedTypeVisitor<Void,
Void> - Overrides:
visitPrimitive
in classAnnotatedTypeScanner<Void,
Void> - Parameters:
type
- the type to visitaVoid
- a visitor-specified parameter- Returns:
- a visitor-specified result
-