public class PatternOrExpr extends PatternExprBase
Constructor and Description |
---|
PatternOrExpr()
Ctor - for use to create a pattern expression tree, without pattern child expression.
|
PatternOrExpr(PatternExpr first,
PatternExpr second,
PatternExpr... patternExprs)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
PatternOrExpr |
add(PatternExpr expr)
Adds a pattern expression to the OR relationship between patterns.
|
PatternExprPrecedenceEnum |
getPrecedence()
Returns the precedence.
|
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 PatternOrExpr()
public PatternOrExpr(PatternExpr first, PatternExpr second, PatternExpr... patternExprs)
first
- a first pattern expression in the OR relationshipsecond
- a second pattern expression in the OR relationshippatternExprs
- further optional pattern expressions in the OR relationshippublic PatternOrExpr add(PatternExpr expr)
expr
- to addpublic 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