Class SDGPrinter


  • public class SDGPrinter
    extends Object
    Renders a system dependence graph as indented plain text, including formal and actual parameter nodes and interprocedural edges.
    • Constructor Detail

      • SDGPrinter

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

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

      • print

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

        public void print​(SDG sdg,
                          Writer output)
        Writes the graph as indented text, grouped by procedure or as a flat node list depending on the configuration.
        Parameters:
        sdg - the graph to print
        output - destination for the rendered text