Class DataflowCFGPrinter<Fact, AnalysisType extends DataflowAnalysis<Fact>>
java.lang.Object
edu.umd.cs.findbugs.ba.CFGPrinter
edu.umd.cs.findbugs.ba.DataflowCFGPrinter<Fact, AnalysisType>
public class DataflowCFGPrinter<Fact, AnalysisType extends DataflowAnalysis<Fact>>
extends CFGPrinter
CFGPrinter class which prints dataflow values at each basic block and
instruction.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionedgeAnnotate(Edge edge) instructionAnnotate(org.apache.bcel.generic.InstructionHandle handle, BasicBlock bb) static <Fact, AnalysisType extends BasicAbstractDataflowAnalysis<Fact>>
voidprintCFG(Dataflow<Fact, AnalysisType> dataflow, PrintStream out) Print CFG annotated with results from given dataflow analysis.Methods inherited from class CFGPrinter
instructionIterator, isForwards, print, setIsForwards
-
Field Details
-
dataflow
-
-
Constructor Details
-
DataflowCFGPrinter
Constructor.- Parameters:
dataflow- the Dataflow object whose values should be used to annotate the printed CFG
-
-
Method Details
-
edgeAnnotate
- Overrides:
edgeAnnotatein classCFGPrinter
-
blockStartAnnotate
- Overrides:
blockStartAnnotatein classCFGPrinter
-
blockAnnotate
- Overrides:
blockAnnotatein classCFGPrinter
-
instructionAnnotate
- Overrides:
instructionAnnotatein classCFGPrinter
-
printCFG
public static <Fact, AnalysisType extends BasicAbstractDataflowAnalysis<Fact>> void printCFG(Dataflow<Fact, AnalysisType> dataflow, PrintStream out) Print CFG annotated with results from given dataflow analysis.- Type Parameters:
Fact- Dataflow fact typeAnalysisType- Dataflow analysis type- Parameters:
dataflow- dataflow driverout- PrintStream to use
-