Class PDGPrinter


  • public class PDGPrinter
    extends Object
    Renders a program dependence graph as indented plain text.
    • Constructor Detail

      • PDGPrinter

        public PDGPrinter()
        Creates a printer using the default config.
      • PDGPrinter

        public PDGPrinter​(GraphPrinterConfig config)
        Creates a printer with explicit settings.
        Parameters:
        config - the rendering settings
    • Method Detail

      • print

        public String print​(PDG pdg)
        Renders the graph to a string.
        Parameters:
        pdg - the graph to print
        Returns:
        the rendered text
      • print

        public void print​(PDG pdg,
                          Writer output)
        Writes the graph as indented text - header, nodes, edges grouped by type, and optionally a statistics block.
        Parameters:
        pdg - the graph to print
        output - destination for the rendered text