@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.
|
currentRootprocessingEnv| Constructor and Description |
|---|
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.
|
typeProcessgetCompilerLog, init, process, typeProcessingStartgetCompletions, getSupportedAnnotationTypes, getSupportedOptions, isInitializedpublic final @Nullable CFGProcessor.CFGProcessResult getCFGProcessResult()
public void typeProcessingOver()
AbstractTypeProcessorSubclasses 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 AbstractTypeProcessorprotected TreePathScanner<?,?> createTreePathScanner(CompilationUnitTree root)
BasicTypeProcessorcreateTreePathScanner in class BasicTypeProcessorroot - where to start the tree traversalpublic SourceVersion getSupportedSourceVersion()
getSupportedSourceVersion in interface ProcessorgetSupportedSourceVersion in class AbstractProcessor