public class PatternMatchUntilExpr extends PatternExprBase
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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(StringWriter writer,
EPStatementFormatter formatter)
Renders the expressions and all it's child expression, in full tree depth, as a string in
language syntax.
|
addChild, getChildren, getTreeObjectName, setChildren, setTreeObjectName, toEPL
public PatternMatchUntilExpr()
public PatternMatchUntilExpr(Expression low, Expression high, Expression single)
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)public PatternMatchUntilExpr(Expression single)
single
- the single bound expressionpublic PatternMatchUntilExpr(Expression low, Expression high, PatternExpr match, PatternExpr until)
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)public Expression getLow()
public void setLow(Expression low)
low
- - low endpoint to setpublic Expression getHigh()
public Expression getSingle()
public void setSingle(Expression single)
single
- single-bound expressionpublic void setHigh(Expression high)
high
- - high endpoint to setpublic PatternExprPrecedenceEnum getPrecedence()
PatternExpr
public void toPrecedenceFreeEPL(StringWriter writer, EPStatementFormatter formatter)
PatternExprBase
toPrecedenceFreeEPL
in class PatternExprBase
writer
- is the output to useformatter
- for newline-whitespace formatting