protected static class AstNode.DebugPrintVisitor extends java.lang.Object implements NodeVisitor
| Constructor and Description |
|---|
DebugPrintVisitor(java.lang.StringBuilder buf) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
toString() |
boolean |
visit(AstNode node)
Visits an AST node.
|
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean visit(AstNode node)
NodeVisitorvisit in interface NodeVisitornode - the AST node. Will never visit an AstRoot node, since the AstRoot
is where the visiting begins.true if the children should be visited. If false, the subtree rooted
at this node is skipped. The node argument should never be null
-- the individual AstNode classes should skip any children that are not present
in the source when they invoke this method.