| Modifier and Type | Field and Description |
|---|---|
| public static StringTemplate | |
| public static StringTemplate | |
| public static StringTemplate | |
| pack-priv int | nodeNumber
Track node number so we can get unique node names |
| pack-priv HashMap | nodeToNumberMap
Track node to number mapping so we can get proper node name back |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected String | |
| protected int | |
| protected StringTemplate | |
| public StringTemplate | |
| public StringTemplate | |
| public StringTemplate | |
| protected void | |
| protected void |
| _edgeST | back to summary |
|---|---|
| public static StringTemplate _edgeST | |
| _nodeST | back to summary |
|---|---|
| public static StringTemplate _nodeST | |
| _treeST | back to summary |
|---|---|
| public static StringTemplate _treeST | |
| nodeNumber | back to summary |
|---|---|
| pack-priv int nodeNumber Track node number so we can get unique node names | |
| nodeToNumberMap | back to summary |
|---|---|
| pack-priv HashMap<Object, Integer> nodeToNumberMap Track node to number mapping so we can get proper node name back | |
| DOTTreeGenerator | back to summary |
|---|---|
| public DOTTreeGenerator() | |
| fixString | back to summary |
|---|---|
| protected String fixString(String in) | |
| getNodeNumber | back to summary |
|---|---|
| protected int getNodeNumber(Object t) | |
| getNodeST | back to summary |
|---|---|
| protected StringTemplate getNodeST(TreeAdaptor adaptor, Object t) | |
| toDOT | back to summary |
|---|---|
| public StringTemplate toDOT(Object tree, TreeAdaptor adaptor, StringTemplate _treeST, StringTemplate _edgeST) | |
| toDOT | back to summary |
|---|---|
| public StringTemplate toDOT(Object tree, TreeAdaptor adaptor) | |
| toDOT | back to summary |
|---|---|
| public StringTemplate toDOT(Tree tree) Generate DOT (graphviz) for a whole tree not just a node. For example, 3+4*5 should generate: digraph { node [shape=plaintext, fixedsize=true, fontsize=11, fontname="Courier", width=.4, height=.2]; edge [arrowsize=.7] "+"->3 "+"->"*" "*"->4 "*"->5 } Return the ST not a string in case people want to alter. Takes a Tree interface object. | |
| toDOTDefineEdges | back to summary |
|---|---|
| protected void toDOTDefineEdges(Object tree, TreeAdaptor adaptor, StringTemplate treeST) | |
| toDOTDefineNodes | back to summary |
|---|---|
| protected void toDOTDefineNodes(Object tree, TreeAdaptor adaptor, StringTemplate treeST) | |