net.esper.client.soda
Class PatternGuardExpr

java.lang.Object
  extended by net.esper.client.soda.EPBaseNamedObject
      extended by net.esper.client.soda.PatternGuardExpr
All Implemented Interfaces:
Serializable, PatternExpr

public class PatternGuardExpr
extends EPBaseNamedObject
implements PatternExpr

Guard is the where timer-within pattern object for use in pattern expressions.

See Also:
Serialized Form

Constructor Summary
PatternGuardExpr(String namespace, String name, List<Object> parameters)
          Ctor - for use to create a pattern expression tree, without pattern child expression.
PatternGuardExpr(String namespace, String name, List<Object> parameters, PatternExpr guardedPattern)
          Ctor - for use to create a pattern expression tree, without pattern child expression.
PatternGuardExpr(String namespace, String name, Object[] parameters, PatternExpr guarded)
          Ctor - for use to create a pattern expression tree, without pattern child expression.
 
Method Summary
 List<PatternExpr> getChildren()
          Returns the list of pattern sub-expressions (child expressions) to the current pattern expression node.
 void toEQL(StringWriter writer)
          Writes the object in EQL-syntax in the format "namespace:name(parameter, parameter, ..., parameter)"
 
Methods inherited from class net.esper.client.soda.EPBaseNamedObject
getName, getNamespace, getParameters, setName, setNamespace, setParameters
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PatternGuardExpr

public PatternGuardExpr(String namespace,
                        String name,
                        List<Object> parameters)
Ctor - for use to create a pattern expression tree, without pattern child expression.

Parameters:
namespace - is the guard object namespace
name - is the guard object name
parameters - is guard object parameters

PatternGuardExpr

public PatternGuardExpr(String namespace,
                        String name,
                        Object[] parameters,
                        PatternExpr guarded)
Ctor - for use to create a pattern expression tree, without pattern child expression.

Parameters:
namespace - is the guard object namespace
name - is the guard object name
parameters - is guard object parameters
guarded - is the guarded pattern expression

PatternGuardExpr

public PatternGuardExpr(String namespace,
                        String name,
                        List<Object> parameters,
                        PatternExpr guardedPattern)
Ctor - for use to create a pattern expression tree, without pattern child expression.

Parameters:
namespace - is the guard object namespace
name - is the guard object name
parameters - is guard object parameters
guardedPattern - is the guarded pattern expression
Method Detail

getChildren

public List<PatternExpr> getChildren()
Description copied from interface: PatternExpr
Returns the list of pattern sub-expressions (child expressions) to the current pattern expression node.

Specified by:
getChildren in interface PatternExpr
Returns:
pattern child expressions or empty list if there are no child expressions

toEQL

public void toEQL(StringWriter writer)
Description copied from class: EPBaseNamedObject
Writes the object in EQL-syntax in the format "namespace:name(parameter, parameter, ..., parameter)"

Specified by:
toEQL in interface PatternExpr
Overrides:
toEQL in class EPBaseNamedObject
Parameters:
writer - to output to