@SupportedAnnotationTypes(value="*") public class CFGProcessor extends BasicTypeProcessor
CFGVisualizeLauncher
for example usage.Modifier and Type | Class and Description |
---|---|
static class |
CFGProcessor.CFGProcessResult
The result of the CFG process, contains the control flow graph when successful.
|
currentRoot
processingEnv
Modifier | Constructor and Description |
---|---|
protected |
CFGProcessor(String className,
String methodName)
Create a CFG processor.
|
Modifier and Type | Method and Description |
---|---|
protected TreePathScanner<?,?> |
createTreePathScanner(CompilationUnitTree root)
Create a TreePathScanner at the given root.
|
@Nullable CFGProcessor.CFGProcessResult |
getCFGProcessResult()
Get the CFG process result.
|
SourceVersion |
getSupportedSourceVersion() |
void |
typeProcessingOver()
A method to be called once all the classes are processed and no error is reported.
|
typeProcess
getCompilerLog, init, process, typeProcessingStart
getCompletions, getSupportedAnnotationTypes, getSupportedOptions, isInitialized
public final @Nullable CFGProcessor.CFGProcessResult getCFGProcessResult()
public void typeProcessingOver()
AbstractTypeProcessor
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.
typeProcessingOver
in class AbstractTypeProcessor
protected TreePathScanner<?,?> createTreePathScanner(CompilationUnitTree root)
BasicTypeProcessor
createTreePathScanner
in class BasicTypeProcessor
root
- where to start the tree traversalpublic SourceVersion getSupportedSourceVersion()
getSupportedSourceVersion
in interface Processor
getSupportedSourceVersion
in class AbstractProcessor