public class AstCollectingVisitor extends NodeVisitorBase
| Modifier and Type | Field and Description |
|---|---|
static String |
EOL |
protected boolean |
eolPending |
protected int |
indent |
protected StringBuilder |
output |
| Constructor and Description |
|---|
AstCollectingVisitor() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
appendEOL() |
protected void |
appendIndent() |
protected void |
appendPendingEOL() |
void |
clear() |
void |
collect(Node node) |
String |
collectAndGetAstText(Node node) |
String |
getAst() |
protected void |
visit(Node node) |
visitChildrenpublic static final String EOL
protected StringBuilder output
protected int indent
protected boolean eolPending
public String getAst()
public void clear()
protected void appendIndent()
protected void appendEOL()
protected void appendPendingEOL()
public void collect(Node node)
protected void visit(Node node)
visit in class NodeVisitorBaseCopyright © 2017. All rights reserved.