Class ExprNodeIdentifierVisitor
java.lang.Object
com.espertech.esper.common.internal.epl.expression.visitor.ExprNodeIdentifierVisitor
- All Implemented Interfaces:
ExprNodeVisitor
Visitor that collects event property identifier information under expression nodes.
The visitor can be configued to not visit aggregation nodes thus ignoring
properties under aggregation nodes such as sum, avg, min/max etc.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns list of event property stream numbers and names that uniquely identify which property is from whcih stream, and the name of each.boolean
Allows visitor to indicate whether to visit a given node.void
Visit the given expression node.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.espertech.esper.common.internal.epl.expression.visitor.ExprNodeVisitor
isWalkDeclExprParam
-
Constructor Details
-
ExprNodeIdentifierVisitor
public ExprNodeIdentifierVisitor(boolean visitAggregateNodes) Ctor.- Parameters:
visitAggregateNodes
- true to indicate that the visitor should visit aggregate nodes, or false if the visitor ignores aggregate nodes
-
-
Method Details
-
isVisit
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 interfaceExprNodeVisitor
- 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
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
-
visit
Description copied from interface:ExprNodeVisitor
Visit the given expression node.- Specified by:
visit
in interfaceExprNodeVisitor
- Parameters:
exprNode
- is the expression node to visit
-