com.espertech.esper.epl.expression.visitor
Interface ExprNodeVisitorWithParent

All Known Implementing Classes:
ExprNodeGroupingVisitorWParent, ExprNodeIdentifierCollectVisitorWContainer, ExprNodeIdentVisitorWParent, ExprNodePreviousVisitorWParent, ExprNodeSubselectDeclaredNoTraverseVisitor

public interface ExprNodeVisitorWithParent

Visitor interface for use with expression node trees, receives both the child node and the parent node (or null to indicate no parent node).


Method Summary
 boolean isVisit(ExprNode exprNode)
          Allows visitor to indicate whether to visit a given node.
 void visit(ExprNode exprNode, ExprNode parentExprNode)
          Visit the given expression node.
 

Method Detail

isVisit

boolean isVisit(ExprNode exprNode)
Allows visitor to indicate whether to visit a given node. Implicitly if a visitor doesn't visit a node it would also not visit any descendent child nodes of that node.

Parameters:
exprNode - is the node in questions
Returns:
true if the visitor wants to visit the child node (next call is visit), or false to skip child

visit

void visit(ExprNode exprNode,
           ExprNode parentExprNode)
Visit the given expression node.

Parameters:
exprNode - is the expression node to visit
parentExprNode - parent to visit

© 2006-2015 EsperTech Inc.
All rights reserved.
Visit us at espertech.com