com.espertech.esper.pattern
Class EvalGuardNode

java.lang.Object
  extended by com.espertech.esper.pattern.EvalNode
      extended by com.espertech.esper.pattern.EvalGuardNode
All Implemented Interfaces:
MetaDefItem, Serializable

public final class EvalGuardNode
extends EvalNode

This class represents a guard in the evaluation tree representing an event expressions.

See Also:
Serialized Form

Constructor Summary
EvalGuardNode(PatternGuardSpec patternGuardSpec)
          Constructor.
 
Method Summary
 GuardFactory getGuardFactory()
          Returns the guard factory.
 PatternGuardSpec getPatternGuardSpec()
          Returns the guard object specification to use for instantiating the guard factory and guard.
 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.
 void setGuardFactory(GuardFactory guardFactory)
          Supplies the guard factory to the node.
 String toString()
           
 
Methods inherited from class com.espertech.esper.pattern.EvalNode
addChildNode, dumpDebug, getChildNodes, getNodeNumber, recursiveAnalyzeChildNodes, setNodeNumber
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EvalGuardNode

public EvalGuardNode(PatternGuardSpec patternGuardSpec)
Constructor.

Parameters:
patternGuardSpec - - factory for guard construction
Method Detail

getPatternGuardSpec

public PatternGuardSpec getPatternGuardSpec()
Returns the guard object specification to use for instantiating the guard factory and guard.

Returns:
guard specification

setGuardFactory

public void setGuardFactory(GuardFactory guardFactory)
Supplies the guard factory to the node.

Parameters:
guardFactory - is the guard factory

newState

public final EvalStateNode newState(Evaluator parentNode,
                                    MatchedEventMap beginState,
                                    PatternContext context,
                                    Object stateNodeId)
Description copied from class: EvalNode
Create the evaluation state node containing the truth value state for each operator in an event expression.

Specified by:
newState in class EvalNode
Parameters:
parentNode - is the parent evaluator node that this node indicates a change in truth value to
beginState - is the container for events that makes up the start state
context - is the handle to services required for evaluation
stateNodeId - is the new state object's identifier
Returns:
state node containing the truth value state for the operator

getGuardFactory

public GuardFactory getGuardFactory()
Returns the guard factory.

Returns:
guard factory

toString

public final String toString()
Overrides:
toString in class Object

© 2007 EsperTech Inc.
All rights reserved.
Visit us at espertech.com