Class CFGUtil.DotFileGenerator

java.lang.Object
com.pnfsoftware.jeb.core.units.code.CFGUtil.DotFileGenerator
Enclosing class:
CFGUtil

public static class CFGUtil.DotFileGenerator extends Object
GraphViz generator for CFG objects. The edge labels are customizable via protected methods.
  • Constructor Details

  • Method Details

    • setTitle

      public void setTitle(String title)
    • setBlockHeaders

      public void setBlockHeaders(Map<Long,String> blockHeaders)
    • setLineLimit

      public void setLineLimit(int lineLimit)
    • setGenerateBlockIndices

      public void setGenerateBlockIndices(int nodeIndexingStartValue)
    • generate

      public String generate()
    • generateEdgeLabel

      protected String generateEdgeLabel(IBasicBlock<? extends IInstruction> src, int outEdgeIndex)
    • generateIrregularEdgeLabel

      protected String generateIrregularEdgeLabel(IBasicBlock<? extends IInstruction> src, int outEdgeIndex)
    • generateNodeBackgroundColor

      protected String generateNodeBackgroundColor(IBasicBlock<? extends IInstruction> blk)
    • generateNodeTextColor

      protected String generateNodeTextColor(IBasicBlock<? extends IInstruction> blk)