public final class ExprTreeWalker
extends java.lang.Object
ExprTreeWalker
class provides methods that traverse an expression tree
and apply a visitor to its nodes. The protocol used for traversal is explained
here.Constructor and Description |
---|
ExprTreeWalker(ExprTreeVisitor visitor)
Constructs an ExprTreeWalker object.
|
public ExprTreeWalker(ExprTreeVisitor visitor)
visitor
- Visitor to be applied to tree nodes.java.lang.IllegalArgumentException
- if the visitor parameter is null.public void visit(java.lang.Iterable<? extends Node> trees)
trees
- A sequence of expression trees to be visited.java.lang.IllegalArgumentException
- if the parameter equals null; if any of
the child nodes of the expression nodes in the sequence has a unknown type.public void visit(Node tree)
tree
- Expression tree to be visited.java.lang.IllegalArgumentException
- if the parameter equals null;
if any of the expression tree nodes has a unknown type.public void visitNode(Node node)
node
- Node to be visited.java.lang.IllegalArgumentException
- if the parameter equals null;
if the node or any of its child nodes has a unknown type.