Class PatternAndExpr

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

public class PatternAndExpr extends PatternExprBase
Logical AND for use in pattern expressions.
See Also:
  • Constructor Details

    • 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 Details

    • 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(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