Package com.tonic.analysis.graph.print
Class PDGPrinter
- java.lang.Object
-
- com.tonic.analysis.graph.print.PDGPrinter
-
public class PDGPrinter extends Object
Renders a program dependence graph as indented plain text.
-
-
Constructor Summary
Constructors Constructor Description PDGPrinter()Creates a printer using the default config.PDGPrinter(GraphPrinterConfig config)Creates a printer with explicit settings.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringprint(PDG pdg)Renders the graph to a string.voidprint(PDG pdg, Writer output)Writes the graph as indented text - header, nodes, edges grouped by type, and optionally a statistics block.
-
-
-
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
-
-