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