|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.google.javascript.jscomp.DotFormatter
public class DotFormatter
DotFormatter prints out a dot file of the Abstract Syntax Tree. For a detailed description of the dot format and visualization tool refer to Graphviz.
Typical usage of this class
System.out.println(new DotFormatter().toDot(node));
This class is not thread safe and should not be used without proper external synchronization.
| Method Summary | |
|---|---|
static String |
toDot(GraphvizGraph graph)
Outputs a string in DOT format that presents the graph. |
static String |
toDot(Node n)
Converts an AST to dot representation. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static String toDot(Node n)
throws IOException
n - the root of the AST described in the dot formatted string
IOExceptionpublic static String toDot(GraphvizGraph graph)
graph - Input graph.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||