|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.espertech.esper.epl.expression.core.ExprNodeBase
public abstract class ExprNodeBase
Superclass for filter nodes in a filter expression tree. Allow validation against stream event types and evaluation of events against filter tree.
Constructor Summary | |
---|---|
ExprNodeBase()
Constructor creates a list of child nodes. |
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> childNodeColl)
Adds child nodes. |
void |
addChildNodeToFront(ExprNode childNode)
|
ExprNode[] |
getChildNodes()
Returns list of child nodes. |
void |
replaceUnlistedChildNode(ExprNode nodeToReplace,
ExprNode newNode)
|
void |
setChildNode(int index,
ExprNode newNode)
|
void |
setChildNodes(ExprNode... nodes)
|
void |
toEPL(java.io.StringWriter writer,
ExprPrecedenceEnum parentPrecedence)
|
abstract void |
toPrecedenceFreeEPL(java.io.StringWriter writer)
|
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.epl.expression.core.ExprNode |
---|
equalsNode, getExprEvaluator, getPrecedence, isConstantResult |
Methods inherited from interface com.espertech.esper.epl.expression.core.ExprValidator |
---|
validate |
Constructor Detail |
---|
public ExprNodeBase()
Method Detail |
---|
public abstract void toPrecedenceFreeEPL(java.io.StringWriter writer)
public void accept(ExprNodeVisitor visitor)
ExprNode
The visitor can decide to skip child nodes by returning false in isVisit.
accept
in interface ExprNode
visitor
- to visit each node and each child node.public void accept(ExprNodeVisitorWithParent visitor)
ExprNode
The visitor can decide to skip child nodes by returning false in isVisit.
accept
in interface ExprNode
visitor
- to visit each node and each child node.public void acceptChildnodes(ExprNodeVisitorWithParent visitor, ExprNode parent)
ExprNode
acceptChildnodes
in interface ExprNode
visitor
- to applyparent
- nodepublic final void addChildNode(ExprNode childNode)
ExprNode
addChildNode
in interface ExprNode
childNode
- is the child evaluation tree node to addpublic final void addChildNodes(java.util.Collection<ExprNode> childNodeColl)
ExprNode
addChildNodes
in interface ExprNode
childNodeColl
- are the child evaluation tree node to addpublic final ExprNode[] getChildNodes()
ExprNode
getChildNodes
in interface ExprNode
public void replaceUnlistedChildNode(ExprNode nodeToReplace, ExprNode newNode)
replaceUnlistedChildNode
in interface ExprNode
public void addChildNodeToFront(ExprNode childNode)
public void setChildNodes(ExprNode... nodes)
setChildNodes
in interface ExprNode
public void setChildNode(int index, ExprNode newNode)
setChildNode
in interface ExprNode
public void toEPL(java.io.StringWriter writer, ExprPrecedenceEnum parentPrecedence)
toEPL
in interface ExprNode
|
© 2006-2015 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 |