com.espertech.esper.client.soda
Class PatternGuardExpr

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

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 toEPL(StringWriter writer)
          Writes the object in EPL-syntax in the format "namespace:name(parameter, parameter, ..., parameter)"
 
Methods inherited from class com.espertech.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

toEPL

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

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

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