Class CFGProcessor
java.lang.Object
javax.annotation.processing.AbstractProcessor
org.checkerframework.javacutil.AbstractTypeProcessor
org.checkerframework.javacutil.BasicTypeProcessor
org.checkerframework.dataflow.cfg.CFGProcessor
- All Implemented Interfaces:
Processor
Generate the control flow graph of a given method in a given class. See
CFGVisualizeLauncher
for example usage.-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
The result of the CFG process, contains the control flow graph when successful. -
Field Summary
Fields inherited from class org.checkerframework.javacutil.BasicTypeProcessor
currentRoot
Fields inherited from class javax.annotation.processing.AbstractProcessor
processingEnv
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected TreePathScanner
<?, ?> Create a TreePathScanner at the given root.Get the CFG process result.void
A method to be called once all the classes are processed.Methods inherited from class org.checkerframework.javacutil.BasicTypeProcessor
typeProcess
Methods inherited from class org.checkerframework.javacutil.AbstractTypeProcessor
getCompilerLog, init, process, typeProcessingStart
Methods inherited from class javax.annotation.processing.AbstractProcessor
getCompletions, getSupportedAnnotationTypes, getSupportedOptions, isInitialized
-
Constructor Details
-
CFGProcessor
Create a CFG processor.- Parameters:
className
- the qualified name of class which includes the specified method to generate the CFG formethodName
- the name of the method to generate the CFG for
-
-
Method Details
-
getCFGProcessResult
Get the CFG process result.- Returns:
- result of cfg process
-
typeProcessingOver
public void typeProcessingOver()Description copied from class:AbstractTypeProcessor
A method to be called once all the classes are processed.Subclasses may override this method to do any aggregate analysis (e.g. generate report, persistence) or resource deallocation.
Method
AbstractTypeProcessor.getCompilerLog()
can be used to access the number of compiler errors.- Overrides:
typeProcessingOver
in classAbstractTypeProcessor
-
createTreePathScanner
Description copied from class:BasicTypeProcessor
Create a TreePathScanner at the given root.- Specified by:
createTreePathScanner
in classBasicTypeProcessor
- Parameters:
root
- where to start the tree traversal- Returns:
- a TreePathScanner at the given root
-
getSupportedSourceVersion
- Specified by:
getSupportedSourceVersion
in interfaceProcessor
- Overrides:
getSupportedSourceVersion
in classAbstractProcessor
-