Class PatternMatchUntilExpr

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

public class PatternMatchUntilExpr extends PatternExprBase
Match-Until construct for use in pattern expressions.
See Also:
  • Constructor Details

    • PatternMatchUntilExpr

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

      public PatternMatchUntilExpr(Expression low, Expression high, Expression single)
      Ctor - for use when adding required child nodes later.
      Parameters:
      low - - low number of matches, or null if no lower boundary
      high - - high number of matches, or null if no high boundary
      single - - if a single bound is provided, this carries the single bound (all others should be null)
    • PatternMatchUntilExpr

      public PatternMatchUntilExpr(Expression single)
      Ctor.
      Parameters:
      single - the single bound expression
    • PatternMatchUntilExpr

      public PatternMatchUntilExpr(Expression low, Expression high, PatternExpr match, PatternExpr until)
      Ctor.
      Parameters:
      low - - low number of matches, or null if no lower boundary
      high - - high number of matches, or null if no high boundary
      match - - the pattern expression that is sought to match repeatedly
      until - - the pattern expression that ends matching (optional, can be null)
  • Method Details

    • getLow

      public Expression getLow()
      Returns the optional low endpoint for the repeat, or null if none supplied.
      Returns:
      low endpoint
    • setLow

      public void setLow(Expression low)
      Sets the optional low endpoint for the repeat, or null if none supplied.
      Parameters:
      low - - low endpoint to set
    • getHigh

      public Expression getHigh()
      Returns the optional high endpoint for the repeat, or null if none supplied.
      Returns:
      high endpoint
    • getSingle

      public Expression getSingle()
      Returns the single-bounds expression.
      Returns:
      single-bound expression
    • setSingle

      public void setSingle(Expression single)
      Sets the single-bound expression.
      Parameters:
      single - single-bound expression
    • setHigh

      public void setHigh(Expression high)
      Sets the optional high endpoint for the repeat, or null if none supplied.
      Parameters:
      high - - high endpoint to set
    • 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