com.espertech.esper.epl.expression.visitor
Class ExprNodeIdentifierCollectVisitor

java.lang.Object
  extended by com.espertech.esper.epl.expression.visitor.ExprNodeIdentifierCollectVisitor
All Implemented Interfaces:
ExprNodeVisitor

public class ExprNodeIdentifierCollectVisitor
extends java.lang.Object
implements ExprNodeVisitor

Visitor that collects event property identifier information under expression nodes.


Constructor Summary
ExprNodeIdentifierCollectVisitor()
          Ctor.
 
Method Summary
 java.util.List<ExprIdentNode> getExprProperties()
          Returns list of event property stream numbers and names that uniquely identify which property is from whcih stream, and the name of each.
 java.util.Set<java.lang.Integer> getStreamsRequired()
           
 boolean isVisit(ExprNode exprNode)
          Allows visitor to indicate whether to visit a given node.
 void visit(ExprNode exprNode)
          Visit the given expression node.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExprNodeIdentifierCollectVisitor

public ExprNodeIdentifierCollectVisitor()
Ctor.

Method Detail

isVisit

public boolean isVisit(ExprNode exprNode)
Description copied from interface: ExprNodeVisitor
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.

Specified by:
isVisit in interface ExprNodeVisitor
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

getExprProperties

public java.util.List<ExprIdentNode> getExprProperties()
Returns list of event property stream numbers and names that uniquely identify which property is from whcih stream, and the name of each.

Returns:
list of event property statement-unique info

getStreamsRequired

public java.util.Set<java.lang.Integer> getStreamsRequired()

visit

public void visit(ExprNode exprNode)
Description copied from interface: ExprNodeVisitor
Visit the given expression node.

Specified by:
visit in interface ExprNodeVisitor
Parameters:
exprNode - is the expression node to visit

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