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
@SupportedAnnotationTypes("*")
public class CFGProcessor
extends org.checkerframework.javacutil.BasicTypeProcessor
Generate the control flow graph of a given method in a given class. See
CFGVisualizeLauncher for example usage.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classThe result of the CFG process, contains the control flow graph when successful. -
Field Summary
Fields inherited from class org.checkerframework.javacutil.BasicTypeProcessor
currentRootFields inherited from class javax.annotation.processing.AbstractProcessor
processingEnv -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected TreePathScanner<?,?> final @Nullable CFGProcessor.CFGProcessResultGet the CFG process result.voidMethods inherited from class org.checkerframework.javacutil.BasicTypeProcessor
typeProcessMethods inherited from class org.checkerframework.javacutil.AbstractTypeProcessor
getCompilerLog, init, process, typeProcessingStartMethods inherited from class javax.annotation.processing.AbstractProcessor
getCompletions, getSupportedAnnotationTypes, getSupportedOptions, isInitialized
-
Constructor Details
-
CFGProcessor
Create a CFG processor.- Parameters:
className- the qualified name of class which includes the specified method to generate the CFG formethodName- the name of the method to generate the CFG for
-
-
Method Details
-
getCFGProcessResult
Get the CFG process result.- Returns:
- result of cfg process
-
typeProcessingOver
public void typeProcessingOver()- Overrides:
typeProcessingOverin classorg.checkerframework.javacutil.AbstractTypeProcessor
-
createTreePathScanner
- Specified by:
createTreePathScannerin classorg.checkerframework.javacutil.BasicTypeProcessor
-
getSupportedSourceVersion
- Specified by:
getSupportedSourceVersionin interfaceProcessor- Overrides:
getSupportedSourceVersionin classAbstractProcessor
-