|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.esper.eql.expression.ExprNode
public abstract class ExprNode
Superclass for filter nodes in a filter expression tree. Allow validation against stream event types and evaluation of events against filter tree.
Constructor Summary | |
---|---|
ExprNode()
Constructor creates a list of child nodes. |
Method Summary | |
---|---|
void |
accept(ExprNodeVisitor visitor)
Accept the visitor. |
void |
addChildNode(ExprNode childNode)
Adds a child node. |
static boolean |
deepEquals(ExprNode nodeOne,
ExprNode nodeTwo)
Compare two expression nodes and their children in exact child-node sequence, returning true if the 2 expression nodes trees are equals, or false if they are not equals. |
void |
dumpDebug(java.lang.String prefix)
Recursively print out all nodes. |
abstract boolean |
equalsNode(ExprNode node)
Return true if a expression node semantically equals the current node, or false if not. |
java.util.LinkedList<ExprNode> |
getChildNodes()
Returns list of child nodes. |
abstract java.lang.String |
toExpressionString()
Returns the expression node rendered as a string. |
void |
validateDescendents(StreamTypeService streamTypeService)
Executes validate on filter tree node descendants. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface net.esper.eql.expression.ExprValidator |
---|
getType, validate |
Methods inherited from interface net.esper.eql.expression.ExprEvaluator |
---|
evaluate |
Constructor Detail |
---|
public ExprNode()
Method Detail |
---|
public abstract java.lang.String toExpressionString()
public abstract 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
public void validateDescendents(StreamTypeService streamTypeService) throws ExprValidationException
streamTypeService
- - serves stream type information
ExprValidationException
- when the validation failspublic 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.public final void addChildNode(ExprNode childNode)
childNode
- is the child evaluation tree node to addpublic final java.util.LinkedList<ExprNode> getChildNodes()
public final void dumpDebug(java.lang.String prefix)
prefix
- is printed out for naming the printed infopublic static boolean deepEquals(ExprNode nodeOne, ExprNode nodeTwo)
Recursive call since it uses this method to compare child nodes in the same exact sequence. Nodes are compared using the equalsNode method.
nodeOne
- - first expression top node of the tree to comparenodeTwo
- - second expression top node of the tree to compare
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |