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