@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| 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.
|
typeProcessinit, 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.
If an error (a Java error or a processor error) is reported, this method is not guaranteed to be invoked.
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