public interface CFGVisualizer<A extends AbstractValue<A>,S extends Store<S>,T extends TransferFunction<A,S>>
| Modifier and Type | Method and Description | 
|---|---|
| void | init(Map<String,Object> args)Initialization method guaranteed to be called once before the first invocation of  visualize(org.checkerframework.dataflow.cfg.ControlFlowGraph, org.checkerframework.dataflow.cfg.block.Block, org.checkerframework.dataflow.analysis.Analysis<A, S, T>). | 
| void | shutdown()Shutdown method called once from the shutdown hook of the  BaseTypeChecker. | 
| @Nullable Map<String,Object> | visualize(ControlFlowGraph cfg,
         Block entry,
         @Nullable Analysis<A,S,T> analysis)Output a visualization representing the control flow graph starting at  entry. | 
| String | visualizeBlock(Block bb,
              @Nullable Analysis<A,S,T> analysis)Visualize a block based on the analysis. | 
| String | visualizeBlockNode(Node t,
                  @Nullable Analysis<A,S,T> analysis)Visualize a Node based on the analysis. | 
| String | visualizeBlockTransferInput(Block bb,
                           Analysis<A,S,T> analysis)Visualize the transferInput of a Block based on the analysis. | 
| String | visualizeConditionalBlock(ConditionalBlock cbb)Visualize a ConditionalBlock. | 
| String | visualizeSpecialBlock(SpecialBlock sbb)Visualize a SpecialBlock. | 
| String | visualizeStore(S store)Delegate the visualization responsibility to the passed  Storeinstance, which will
 call back to this visualizer instance for sub-components. | 
| String | visualizeStoreArrayVal(FlowExpressions.ArrayAccess arrayValue,
                      A value)Called by  CFAbstractStore#internalVisualize()to visualize the value of arrays
 collected by this Store. | 
| String | visualizeStoreClassVals(FlowExpressions.ClassName className,
                       A value)Called by  CFAbstractStore#internalVisualize()to visualize the value of class names
 collected by this Store. | 
| String | visualizeStoreFieldVals(FlowExpressions.FieldAccess fieldAccess,
                       A value)Called by  CFAbstractStore#internalVisualize()to visualize the value of fields
 collected by this Store. | 
| String | visualizeStoreFooter()Called by  CFAbstractStoreto visualize any information after the invocation ofCFAbstractStore#internalVisualize(). | 
| String | visualizeStoreHeader(String classCanonicalName)Called by a  CFAbstractStoreto visualize the class name before calling theCFAbstractStore#internalVisualize()method. | 
| String | visualizeStoreKeyVal(String keyName,
                    Object value)Called by  CFAbstractStore#internalVisualize()to visualize the specific information
 collected according to the specific kind of Store. | 
| String | visualizeStoreLocalVar(FlowExpressions.LocalVariable localVar,
                      A value)Called by  CFAbstractStore#internalVisualize()to visualize a local variable. | 
| String | visualizeStoreMethodVals(FlowExpressions.MethodCall methodCall,
                        A value)Called by  CFAbstractStore#internalVisualize()to visualize the value of pure method
 calls collected by this Store. | 
| String | visualizeStoreThisVal(A value)Called by  CFAbstractStore#internalVisualize()to visualize the value of the current
 objectthisin this Store. | 
void init(Map<String,Object> args)
visualize(org.checkerframework.dataflow.cfg.ControlFlowGraph, org.checkerframework.dataflow.cfg.block.Block, org.checkerframework.dataflow.analysis.Analysis<A, S, T>).args - implementation-dependent options@Nullable Map<String,Object> visualize(ControlFlowGraph cfg, Block entry, @Nullable Analysis<A,S,T> analysis)
entry. The
 concrete actions are implementation dependent.
 An invocation visualize(cfg, entry, null); does not output stores at the beginning
 of basic blocks.
cfg - the CFG to visualizeentry - the entry node of the control flow graph to be representedanalysis - an analysis containing information about the program represented by the CFG.
     The information includes Stores that are valid at the beginning of basic blocks
     reachable from entry and per-node information for value producing Nodes.
     Can also be null to indicate that this information should not be output.DOTCFGVisualizer) or a
     String representation of the CFG (StringCFGVisualizer)String visualizeStore(S store)
Store instance, which will
 call back to this visualizer instance for sub-components.store - the store to visualizeString visualizeStoreHeader(String classCanonicalName)
CFAbstractStore to visualize the class name before calling the CFAbstractStore#internalVisualize() method.classCanonicalName - the canonical name of the classString visualizeStoreLocalVar(FlowExpressions.LocalVariable localVar, A value)
CFAbstractStore#internalVisualize() to visualize a local variable.localVar - the local variablevalue - the value of the local variableString visualizeStoreThisVal(A value)
CFAbstractStore#internalVisualize() to visualize the value of the current
 object this in this Store.value - the value of the current object thisthisString visualizeStoreFieldVals(FlowExpressions.FieldAccess fieldAccess, A value)
CFAbstractStore#internalVisualize() to visualize the value of fields
 collected by this Store.fieldAccess - the fieldvalue - the value of the fieldString visualizeStoreArrayVal(FlowExpressions.ArrayAccess arrayValue, A value)
CFAbstractStore#internalVisualize() to visualize the value of arrays
 collected by this Store.arrayValue - the arrayvalue - the value of the arrayString visualizeStoreMethodVals(FlowExpressions.MethodCall methodCall, A value)
CFAbstractStore#internalVisualize() to visualize the value of pure method
 calls collected by this Store.methodCall - the pure method callvalue - the value of the pure method callString visualizeStoreClassVals(FlowExpressions.ClassName className, A value)
CFAbstractStore#internalVisualize() to visualize the value of class names
 collected by this Store.className - the class namevalue - the value of the class nameString visualizeStoreKeyVal(String keyName, Object value)
CFAbstractStore#internalVisualize() to visualize the specific information
 collected according to the specific kind of Store. Currently, these Stores call this method:
 LockStore, NullnessStore, and InitializationStore to visualize
 additional information.keyName - the name of the specific information to be visualizedvalue - the value of the specific information to be visualizedString visualizeStoreFooter()
CFAbstractStore to visualize any information after the invocation of CFAbstractStore#internalVisualize().String visualizeBlock(Block bb, @Nullable Analysis<A,S,T> analysis)
bb - the blockanalysis - the current analysisString visualizeSpecialBlock(SpecialBlock sbb)
sbb - the special blocksbb: entry, exit,
     or exceptional-exitString visualizeConditionalBlock(ConditionalBlock cbb)
cbb - the conditional blockString visualizeBlockTransferInput(Block bb, Analysis<A,S,T> analysis)
bb - the blockanalysis - the current analysisString visualizeBlockNode(Node t, @Nullable Analysis<A,S,T> analysis)
t - the nodeanalysis - the current analysisvoid shutdown()
BaseTypeChecker.