|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.esper.pattern.EvalStateNode
net.esper.pattern.EvalFilterStateNode
public final class EvalFilterStateNode
This class contains the state of a single filter expression in the evaluation state tree.
Constructor Summary | |
---|---|
EvalFilterStateNode(Evaluator parentNode,
FilterSpec filterSpec,
String eventAsName,
MatchedEventMap beginState,
PatternContext context)
Constructor. |
Method Summary | |
---|---|
Object |
accept(EvalStateNodeVisitor visitor,
Object data)
Accept a visitor. |
Object |
childrenAccept(EvalStateNodeVisitor visitor,
Object data)
Pass the visitor to all child nodes. |
void |
matchFound(EventBean event)
Indicate that an event was evaluated by the FilterService
which matches the filter specification FilterSpec associated with this callback. |
void |
quit()
Stops the event expression or an instance of it. |
void |
start()
Starts the event expression or an instance of it. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public EvalFilterStateNode(Evaluator parentNode, FilterSpec filterSpec, String eventAsName, MatchedEventMap beginState, PatternContext context)
parentNode
- is the parent evaluator to call to indicate truth valuefilterSpec
- is the filter definitioneventAsName
- is the name to use to store the eventbeginState
- contains the events that make up prior matchescontext
- contains handles to services requiredMethod Detail |
---|
public final void start()
EvalStateNode
start
in class EvalStateNode
public final void quit()
EvalStateNode
quit
in class EvalStateNode
public final void matchFound(EventBean event)
FilterHandleCallback
FilterService
which matches the filter specification FilterSpec
associated with this callback.
matchFound
in interface FilterHandleCallback
event
- - the event received that matches the filter specificationpublic final Object accept(EvalStateNodeVisitor visitor, Object data)
EvalStateNode
accept
in class EvalStateNode
visitor
- on which the visit method is invoked by each nodedata
- any additional data the visitor may need is passed in this parameter
public final Object childrenAccept(EvalStateNodeVisitor visitor, Object data)
EvalStateNode
childrenAccept
in class EvalStateNode
visitor
- is the instance to be passed to all child nodesdata
- any additional data the visitor may need is passed in this parameter
public final String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |