|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ExprNode
Method Summary | |
---|---|
void |
accept(ExprNodeVisitor visitor)
Accept the visitor. |
void |
accept(ExprNodeVisitorWithParent visitor)
Accept the visitor. |
void |
acceptChildnodes(ExprNodeVisitorWithParent visitor,
ExprNode parent)
Accept a visitor that receives both parent and child node. |
void |
addChildNode(ExprNode childNode)
Adds a child node. |
void |
addChildNodes(java.util.Collection<ExprNode> childNodes)
Adds child nodes. |
boolean |
equalsNode(ExprNode node)
Return true if a expression node semantically equals the current node, or false if not. |
ExprNode[] |
getChildNodes()
Returns list of child nodes. |
ExprEvaluator |
getExprEvaluator()
|
ExprPrecedenceEnum |
getPrecedence()
Returns precedence. |
boolean |
isConstantResult()
Returns true if the expression node's evaluation value doesn't depend on any events data, as must be determined at validation time, which is bottom-up and therefore reliably allows each node to determine constant value. |
void |
replaceUnlistedChildNode(ExprNode nodeToReplace,
ExprNode newNode)
|
void |
setChildNode(int index,
ExprNode newNode)
|
void |
setChildNodes(ExprNode... nodes)
|
void |
toEPL(java.io.StringWriter writer,
ExprPrecedenceEnum parentPrecedence)
|
Methods inherited from interface com.espertech.esper.epl.expression.core.ExprValidator |
---|
validate |
Method Detail |
---|
ExprEvaluator getExprEvaluator()
void toEPL(java.io.StringWriter writer, ExprPrecedenceEnum parentPrecedence)
ExprPrecedenceEnum getPrecedence()
boolean isConstantResult()
boolean equalsNode(ExprNode node)
Concrete implementations should compare the type and any additional information that impact the evaluation of a node.
node
- to compare to
void accept(ExprNodeVisitor visitor)
The visitor can decide to skip child nodes by returning false in isVisit.
visitor
- to visit each node and each child node.void accept(ExprNodeVisitorWithParent visitor)
The visitor can decide to skip child nodes by returning false in isVisit.
visitor
- to visit each node and each child node.void acceptChildnodes(ExprNodeVisitorWithParent visitor, ExprNode parent)
visitor
- to applyparent
- nodevoid addChildNode(ExprNode childNode)
childNode
- is the child evaluation tree node to addvoid addChildNodes(java.util.Collection<ExprNode> childNodes)
childNodes
- are the child evaluation tree node to addExprNode[] getChildNodes()
void replaceUnlistedChildNode(ExprNode nodeToReplace, ExprNode newNode)
void setChildNode(int index, ExprNode newNode)
void setChildNodes(ExprNode... nodes)
|
© 2006-2016 EsperTech Inc. All rights reserved. Visit us at espertech.com |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |