Class PatternFollowedByExpr
java.lang.Object
com.espertech.esper.common.client.soda.PatternExprBase
com.espertech.esper.common.client.soda.PatternFollowedByExpr
- All Implemented Interfaces:
PatternExpr
,Serializable
Followed-by for use in pattern expressions.
- See Also:
-
Constructor Summary
ConstructorDescriptionCtor - for use to create a pattern expression tree, without pattern child expression.PatternFollowedByExpr
(PatternExpr first, PatternExpr second, PatternExpr... patternExprs) Ctor.PatternFollowedByExpr
(List<Expression> optionalMaxPerSubexpression) Ctor. -
Method Summary
Modifier and TypeMethodDescriptionadd
(PatternExpr expr) Adds a pattern expression to the followed-by relationship between patterns.Returns the instance limits, if any, for pattern-subexpressions.Returns the precedence.void
setOptionalMaxPerSubexpression
(List<Expression> optionalMaxPerSubexpression) Sets the instance limits, if any, for pattern-subexpressions.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
-
PatternFollowedByExpr
public PatternFollowedByExpr()Ctor - for use to create a pattern expression tree, without pattern child expression. -
PatternFollowedByExpr
Ctor.- Parameters:
optionalMaxPerSubexpression
- if parameterized by a max-limits for each pattern sub-expressions
-
PatternFollowedByExpr
Ctor.- Parameters:
first
- a first pattern expression in the followed-by relationshipsecond
- a second pattern expression in the followed-by relationshippatternExprs
- further optional pattern expressions in the followed-by relationship
-
-
Method Details
-
add
Adds a pattern expression to the followed-by relationship between patterns.- Parameters:
expr
- to add- Returns:
- pattern expression
-
getPrecedence
Description copied from interface:PatternExpr
Returns the precedence.- Returns:
- precedence
-
getOptionalMaxPerSubexpression
Returns the instance limits, if any, for pattern-subexpressions.- Returns:
- list of max-limit or null
-
setOptionalMaxPerSubexpression
Sets the instance limits, if any, for pattern-subexpressions.- Parameters:
optionalMaxPerSubexpression
- list of max-limit or null
-
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
-