Class PatternMatchUntilExpr
java.lang.Object
com.espertech.esper.common.client.soda.PatternExprBase
com.espertech.esper.common.client.soda.PatternMatchUntilExpr
- All Implemented Interfaces:
PatternExpr
,Serializable
Match-Until construct for use in pattern expressions.
- See Also:
-
Constructor Summary
ConstructorDescriptionCtor - 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
Modifier and TypeMethodDescriptiongetHigh()
Returns the optional high endpoint for the repeat, or null if none supplied.getLow()
Returns the optional low endpoint for the repeat, or null if none supplied.Returns the precedence.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
(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.common.client.soda.PatternExprBase
addChild, getChildren, getTreeObjectName, setChildren, setTreeObjectName, toEPL
-
Constructor Details
-
PatternMatchUntilExpr
public PatternMatchUntilExpr()Ctor - for use to create a pattern expression tree, without pattern child expression. -
PatternMatchUntilExpr
Ctor - for use when adding required child nodes later.- Parameters:
low
- - low number of matches, or null if no lower boundaryhigh
- - high number of matches, or null if no high boundarysingle
- - if a single bound is provided, this carries the single bound (all others should be null)
-
PatternMatchUntilExpr
Ctor.- Parameters:
single
- the single bound expression
-
PatternMatchUntilExpr
Ctor.- Parameters:
low
- - low number of matches, or null if no lower boundaryhigh
- - high number of matches, or null if no high boundarymatch
- - the pattern expression that is sought to match repeatedlyuntil
- - the pattern expression that ends matching (optional, can be null)
-
-
Method Details
-
getLow
Returns the optional low endpoint for the repeat, or null if none supplied.- Returns:
- low endpoint
-
setLow
Sets the optional low endpoint for the repeat, or null if none supplied.- Parameters:
low
- - low endpoint to set
-
getHigh
Returns the optional high endpoint for the repeat, or null if none supplied.- Returns:
- high endpoint
-
getSingle
Returns the single-bounds expression.- Returns:
- single-bound expression
-
setSingle
Sets the single-bound expression.- Parameters:
single
- single-bound expression
-
setHigh
Sets the optional high endpoint for the repeat, or null if none supplied.- Parameters:
high
- - high endpoint to set
-
getPrecedence
Description copied from interface:PatternExpr
Returns the precedence.- Returns:
- precedence
-
toPrecedenceFreeEPL
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 classPatternExprBase
- Parameters:
writer
- is the output to useformatter
- for newline-whitespace formatting
-