com.espertech.esper.client.soda
Class PatternOrExpr

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

public class PatternOrExpr
extends PatternExprBase

Logical OR for use in pattern expressions.

See Also:
Serialized Form

Constructor Summary
PatternOrExpr()
          Ctor - for use to create a pattern expression tree, without pattern child expression.
PatternOrExpr(PatternExpr first, PatternExpr second, PatternExpr... patternExprs)
          Ctor.
 
Method Summary
 PatternOrExpr add(PatternExpr expr)
          Adds a pattern expression to the OR relationship between patterns.
 void toEPL(StringWriter writer)
          Renders the pattern expression and all it's child expressions, in full tree depth, as a string in language syntax.
 
Methods inherited from class com.espertech.esper.client.soda.PatternExprBase
addChild, getChildren
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PatternOrExpr

public PatternOrExpr()
Ctor - for use to create a pattern expression tree, without pattern child expression.


PatternOrExpr

public PatternOrExpr(PatternExpr first,
                     PatternExpr second,
                     PatternExpr... patternExprs)
Ctor.

Parameters:
first - a first pattern expression in the OR relationship
second - a second pattern expression in the OR relationship
patternExprs - further optional pattern expressions in the OR relationship
Method Detail

add

public PatternOrExpr add(PatternExpr expr)
Adds a pattern expression to the OR relationship between patterns.

Parameters:
expr - to add
Returns:
pattern expression

toEPL

public void toEPL(StringWriter writer)
Description copied from interface: PatternExpr
Renders the pattern expression and all it's child expressions, in full tree depth, as a string in language syntax.

Parameters:
writer - is the output to use

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