Class IrrelevantTypeAnnotator
java.lang.Object
org.checkerframework.framework.type.visitor.AnnotatedTypeScanner<Void,Void>
org.checkerframework.framework.type.typeannotator.TypeAnnotator
org.checkerframework.framework.type.typeannotator.IrrelevantTypeAnnotator
- All Implemented Interfaces:
AnnotatedTypeVisitor<Void,Void>
Adds annotations to types that are not relevant specified by the
RelevantJavaTypes on a
checker.-
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
atypeFactoryFields inherited from class org.checkerframework.framework.type.visitor.AnnotatedTypeScanner
defaultResult, reduceFunction, visitedNodes -
Constructor Summary
ConstructorsConstructorDescriptionIrrelevantTypeAnnotator(GenericAnnotatedTypeFactory atypeFactory) Annotate every type except for those whose underlying Java type is one of (or a subtype or supertype of) a class in relevantClasses. -
Method Summary
Modifier and TypeMethodDescriptionprotected Voidscan(AnnotatedTypeMirror type, Void aVoid) Scantypeby callingtype.accept(this, p); this method may be overridden by subclasses.Methods inherited from class org.checkerframework.framework.type.typeannotator.TypeAnnotator
visitExecutableMethods inherited from class org.checkerframework.framework.type.visitor.AnnotatedTypeScanner
reduce, reset, scan, scanAndReduce, scanAndReduce, visit, visit, visitArray, visitDeclared, visitIntersection, visitNoType, visitNull, visitPrimitive, visitTypeVariable, visitUnion, visitWildcard
-
Constructor Details
-
IrrelevantTypeAnnotator
Annotate every type except for those whose underlying Java type is one of (or a subtype or supertype of) a class in relevantClasses. (Only adds annotationMirror if no annotation in the hierarchy are already on the type.) If relevantClasses includes Object[].class, then all arrays are considered relevant.- Parameters:
atypeFactory- a GenericAnnotatedTypeFactory
-
-
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:
type- type to scanaVoid- the parameter to use- Returns:
- the result of visiting
type
-