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 SummaryNested ClassesModifier and TypeClassDescriptionstatic classThe result of the CFG process, contains the control flow graph when successful.
- 
Field SummaryFields inherited from class org.checkerframework.javacutil.BasicTypeProcessorcurrentRootFields inherited from class javax.annotation.processing.AbstractProcessorprocessingEnv
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected TreePathScanner<?,?> Create a TreePathScanner at the given root.Get the CFG process result.voidA method to be called once all the classes are processed.Methods inherited from class org.checkerframework.javacutil.BasicTypeProcessortypeProcessMethods inherited from class org.checkerframework.javacutil.AbstractTypeProcessorgetCompilerLog, init, process, typeProcessingStartMethods inherited from class javax.annotation.processing.AbstractProcessorgetCompletions, getSupportedAnnotationTypes, getSupportedOptions, isInitialized
- 
Constructor Details- 
CFGProcessorCreate a CFG processor.- Parameters:
- className- the qualified name of class which includes the specified method to generate the CFG for
- methodName- the name of the method to generate the CFG for
 
 
- 
- 
Method Details- 
getCFGProcessResultGet the CFG process result.- Returns:
- result of cfg process
 
- 
typeProcessingOverpublic void typeProcessingOver()Description copied from class:AbstractTypeProcessorA 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:
- typeProcessingOverin class- AbstractTypeProcessor
 
- 
createTreePathScannerDescription copied from class:BasicTypeProcessorCreate a TreePathScanner at the given root.- Specified by:
- createTreePathScannerin class- BasicTypeProcessor
- Parameters:
- root- where to start the tree traversal
- Returns:
- a TreePathScanner at the given root
 
- 
getSupportedSourceVersion- Specified by:
- getSupportedSourceVersionin interface- Processor
- Overrides:
- getSupportedSourceVersionin class- AbstractProcessor
 
 
-