Package org.mozilla.javascript.ast
Interface NodeVisitor
- 
- All Known Implementing Classes:
- AstNode.DebugPrintVisitor
 
 public interface NodeVisitorSimple visitor interface for traversing the AST. The nodes are visited in an arbitrary order. The visitor must cast nodes to the appropriate type based on their token-type.
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanvisit(AstNode node)Visits an AST node.
 
- 
- 
- 
Method Detail- 
visitboolean visit(AstNode node) Visits an AST node.- Parameters:
- node- the AST node. Will never visit an- AstRootnode, since the- AstRootis where the visiting begins.
- Returns:
- trueif the children should be visited. If- false, the subtree rooted at this node is skipped. The- nodeargument should never be- null-- the individual- AstNodeclasses should skip any children that are not present in the source when they invoke this method.
 
 
- 
 
-