com.espertech.esper.client.soda
Class PatternMatchUntilExpr

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

public class PatternMatchUntilExpr
extends PatternExprBase

Match-Until construct for use in pattern expressions.

See Also:
Serialized Form

Constructor Summary
PatternMatchUntilExpr()
          Ctor - for use to create a pattern expression tree, without pattern child expression.
PatternMatchUntilExpr(Expression single)
          Ctor.
PatternMatchUntilExpr(Expression low, Expression high, Expression single)
          Ctor - for use when adding required child nodes later.
PatternMatchUntilExpr(Expression low, Expression high, PatternExpr match, PatternExpr until)
          Ctor.
 
Method Summary
 Expression getHigh()
          Returns the optional high endpoint for the repeat, or null if none supplied.
 Expression getLow()
          Returns the optional low endpoint for the repeat, or null if none supplied.
 PatternExprPrecedenceEnum getPrecedence()
          Returns the precedence.
 Expression getSingle()
          Returns the single-bounds expression.
 void setHigh(Expression high)
          Sets the optional high endpoint for the repeat, or null if none supplied.
 void setLow(Expression low)
          Sets the optional low endpoint for the repeat, or null if none supplied.
 void setSingle(Expression single)
          Sets the single-bound expression.
 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

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 Detail

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