|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.esper.pattern.EvalNode
public abstract class EvalNode
Superclass of all nodes in an evaluation tree representing an event pattern expression. Follows the Composite pattern. Child nodes do not carry references to parent nodes, the tree is unidirectional.
Method Summary | |
---|---|
void |
addChildNode(EvalNode childNode)
Adds a child node. |
void |
dumpDebug(String prefix)
Recursively print out all nodes. |
List<EvalNode> |
getChildNodes()
Returns list of child nodes. |
EvalNodeNumber |
getNodeNumber()
Returns the evaluation node's relative node number in the evaluation node tree. |
abstract EvalStateNode |
newState(Evaluator parentNode,
MatchedEventMap beginState,
PatternContext context,
Object stateNodeId)
Create the evaluation state node containing the truth value state for each operator in an event expression. |
static EvalNodeAnalysisResult |
recursiveAnalyzeChildNodes(EvalNode currentNode)
Searched recursivly for pattern evaluation filter nodes. |
void |
setNodeNumber(EvalNodeNumber nodeNumber)
Sets the evaluation node's relative node number. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public abstract EvalStateNode newState(Evaluator parentNode, MatchedEventMap beginState, PatternContext context, Object stateNodeId)
parentNode
- is the parent evaluator node that this node indicates a change in truth value tobeginState
- is the container for events that makes up the start statecontext
- is the handle to services required for evaluationstateNodeId
- is the new state object's identifier
public EvalNodeNumber getNodeNumber()
public void setNodeNumber(EvalNodeNumber nodeNumber)
nodeNumber
- is the node number to setpublic final void addChildNode(EvalNode childNode)
childNode
- is the child evaluation tree node to addpublic final List<EvalNode> getChildNodes()
public final void dumpDebug(String prefix)
prefix
- is printed out for naming the printed infopublic static EvalNodeAnalysisResult recursiveAnalyzeChildNodes(EvalNode currentNode)
currentNode
- is the root node
|
© 2007 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 |