| Modifier and Type | Field and Description |
|---|---|
| private final PrintStream | |
| private final Stack | |
| private final String[] |
| Access | Constructor and Description |
|---|---|
| public | NodeAsHTMLPrinter(PrintStream
supplied PrintStream to output nodes to out, String[] an array of token names to use tokenNames)A visitor that prints a html tags, for each node, to the supplied PrintStream. |
| Modifier and Type | Method and Description |
|---|---|
| private static String | |
| public GroovySourceAST | |
| public void | |
| private static String | |
| public void | |
| public void | |
| public void | visitDefault(GroovySourceAST t, int visit)
Overrides org. Implements org. |
| out | back to summary |
|---|---|
| private final PrintStream out | |
| stack | back to summary |
|---|---|
| private final Stack<E> stack | |
| tokenNames | back to summary |
|---|---|
| private final String[] tokenNames | |
| NodeAsHTMLPrinter | back to summary |
|---|---|
| public NodeAsHTMLPrinter(PrintStream out, String[] tokenNames) A visitor that prints a html tags, for each node, to the supplied PrintStream.
| |
| colour | back to summary |
|---|---|
| private static String colour(GroovySourceAST t) | |
| pop | back to summary |
|---|---|
| public GroovySourceAST pop() Overrides org. Implements org. | |
| push | back to summary |
|---|---|
| public void push(GroovySourceAST t) Overrides org. Implements org. | |
| quote | back to summary |
|---|---|
| private static String quote(String tokenName) | |
| setUp | back to summary |
|---|---|
| public void setUp() Overrides org. Implements org. | |
| tearDown | back to summary |
|---|---|
| public void tearDown() Overrides org. Implements org. | |
| visitDefault | back to summary |
|---|---|
| public void visitDefault(GroovySourceAST t, int visit) Overrides org. Implements org. | |