Class PatternOrExpr

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

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

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

    • add

      public PatternOrExpr add(PatternExpr expr)
      Adds a pattern expression to the OR 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