Package org.checkerframework.javacutil
Class BasicTypeProcessor
java.lang.Object
javax.annotation.processing.AbstractProcessor
org.checkerframework.javacutil.AbstractTypeProcessor
org.checkerframework.javacutil.BasicTypeProcessor
- All Implemented Interfaces:
Processor
- Direct Known Subclasses:
CFGProcessor
Process the types in an AST in a trivial manner, with hooks for derived classes to actually do
something.
-
Field Summary
Modifier and TypeFieldDescriptionprotected @MonotonicNonNull CompilationUnitTree
The source tree that's being scanned.Fields inherited from class javax.annotation.processing.AbstractProcessor
processingEnv
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract TreePathScanner<?,
?> Create a TreePathScanner at the given root.void
typeProcess
(TypeElement e, TreePath p) Visit the tree path for the type element.Methods inherited from class org.checkerframework.javacutil.AbstractTypeProcessor
getCompilerLog, init, process, typeProcessingOver, typeProcessingStart
Methods inherited from class javax.annotation.processing.AbstractProcessor
getCompletions, getSupportedAnnotationTypes, getSupportedOptions, getSupportedSourceVersion, isInitialized
-
Field Details
-
currentRoot
The source tree that's being scanned.
-
-
Constructor Details
-
BasicTypeProcessor
public BasicTypeProcessor()
-
-
Method Details
-
createTreePathScanner
Create a TreePathScanner at the given root.- Parameters:
root
- where to start the tree traversal- Returns:
- a TreePathScanner at the given root
-
typeProcess
Visit the tree path for the type element.- Specified by:
typeProcess
in classAbstractTypeProcessor
- Parameters:
e
- element of the analyzed classp
- the tree path to the element, with the leaf being aClassTree
-