com.espertech.esper.client.soda
Class PatternAndExpr

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

public class PatternAndExpr
extends PatternExprBase

Logical AND for use in pattern expressions.

See Also:
Serialized Form

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

Constructor Detail

PatternAndExpr

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


PatternAndExpr

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

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

add

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

Parameters:
expr - to add
Returns:
pattern expression

getPrecedence

public PatternExprPrecedenceEnum getPrecedence()
Description copied from interface: PatternExpr
Returns the precedence.

Returns:
precedence

toPrecedenceFreeEPL

public void toPrecedenceFreeEPL(java.io.StringWriter writer,
                                EPStatementFormatter formatter)
Description copied from class: PatternExprBase
Renders the expressions and all it's child expression, in full tree depth, as a string in language syntax.

Specified by:
toPrecedenceFreeEPL in class PatternExprBase
Parameters:
writer - is the output to use
formatter - for newline-whitespace formatting

© 2006-2015 EsperTech Inc.
All rights reserved.
Visit us at espertech.com