Class PatternOrExpr
java.lang.Object
com.espertech.esper.common.client.soda.PatternExprBase
com.espertech.esper.common.client.soda.PatternOrExpr
- All Implemented Interfaces:
PatternExpr
,Serializable
Logical OR for use in pattern expressions.
- See Also:
-
Constructor Summary
ConstructorDescriptionCtor - for use to create a pattern expression tree, without pattern child expression.PatternOrExpr
(PatternExpr first, PatternExpr second, PatternExpr... patternExprs) Ctor. -
Method Summary
Modifier and TypeMethodDescriptionadd
(PatternExpr expr) Adds a pattern expression to the OR relationship between patterns.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.Methods inherited from class com.espertech.esper.common.client.soda.PatternExprBase
addChild, getChildren, getTreeObjectName, setChildren, setTreeObjectName, toEPL
-
Constructor Details
-
PatternOrExpr
public PatternOrExpr()Ctor - for use to create a pattern expression tree, without pattern child expression. -
PatternOrExpr
Ctor.- Parameters:
first
- a first pattern expression in the OR relationshipsecond
- a second pattern expression in the OR relationshippatternExprs
- further optional pattern expressions in the OR relationship
-
-
Method Details
-
add
Adds a pattern expression to the OR relationship between patterns.- Parameters:
expr
- to add- Returns:
- pattern expression
-
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
-