Class PatternFollowedByExpr

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

public class PatternFollowedByExpr extends PatternExprBase
Followed-by for use in pattern expressions.
See Also:
  • Constructor Details

    • PatternFollowedByExpr

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

      public PatternFollowedByExpr(List<Expression> optionalMaxPerSubexpression)
      Ctor.
      Parameters:
      optionalMaxPerSubexpression - if parameterized by a max-limits for each pattern sub-expressions
    • PatternFollowedByExpr

      public PatternFollowedByExpr(PatternExpr first, PatternExpr second, PatternExpr... patternExprs)
      Ctor.
      Parameters:
      first - a first pattern expression in the followed-by relationship
      second - a second pattern expression in the followed-by relationship
      patternExprs - further optional pattern expressions in the followed-by relationship
  • Method Details

    • add

      Adds a pattern expression to the followed-by relationship between patterns.
      Parameters:
      expr - to add
      Returns:
      pattern expression
    • getPrecedence

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

      public List<Expression> getOptionalMaxPerSubexpression()
      Returns the instance limits, if any, for pattern-subexpressions.
      Returns:
      list of max-limit or null
    • setOptionalMaxPerSubexpression

      public void setOptionalMaxPerSubexpression(List<Expression> optionalMaxPerSubexpression)
      Sets the instance limits, if any, for pattern-subexpressions.
      Parameters:
      optionalMaxPerSubexpression - list of max-limit or null
    • 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