Package org.mozilla.javascript.ast
Class AstNode.DebugPrintVisitor
- java.lang.Object
-
- org.mozilla.javascript.ast.AstNode.DebugPrintVisitor
-
- All Implemented Interfaces:
NodeVisitor
- Enclosing class:
- AstNode
protected static class AstNode.DebugPrintVisitor extends java.lang.Object implements NodeVisitor
-
-
Constructor Summary
Constructors Constructor Description DebugPrintVisitor(java.lang.StringBuilder buf)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
toString()
boolean
visit(AstNode node)
Visits an AST node.
-
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
visit
public boolean visit(AstNode node)
Description copied from interface:NodeVisitor
Visits an AST node.- Specified by:
visit
in interfaceNodeVisitor
- Parameters:
node
- the AST node. Will never visit anAstRoot
node, since theAstRoot
is where the visiting begins.- Returns:
true
if the children should be visited. Iffalse
, the subtree rooted at this node is skipped. Thenode
argument should never benull
-- the individualAstNode
classes should skip any children that are not present in the source when they invoke this method.
-
-