Class PatternGuardExpr
java.lang.Object
com.espertech.esper.common.client.soda.EPBaseNamedObject
com.espertech.esper.common.client.soda.PatternGuardExpr
- All Implemented Interfaces:
PatternExpr
,Serializable
Guard is the where timer-within pattern object for use in pattern expressions.
- See Also:
-
Constructor Summary
ConstructorDescriptionPatternGuardExpr
(String namespace, String name, Expression[] parameters, PatternExpr guarded) Ctor - for use to create a pattern expression tree, without pattern child expression.PatternGuardExpr
(String namespace, String name, List<Expression> parameters) Ctor - for use to create a pattern expression tree, without pattern child expression.PatternGuardExpr
(String namespace, String name, List<Expression> parameters, PatternExpr guardedPattern) Ctor - for use to create a pattern expression tree, without pattern child expression. -
Method Summary
Modifier and TypeMethodDescriptionReturns the list of pattern sub-expressions (child expressions) to the current pattern expression node.Get sub expressionReturns the precedence.Returns the id for the pattern expression, for use by tools.void
setChildren
(List<PatternExpr> children) Sets the list of pattern sub-expressions (child expressions) to the current pattern expression node.void
setGuarded
(List<PatternExpr> guarded) Set sub pattern.void
setTreeObjectName
(String treeObjectName) Sets and id for the pattern expression, for use by tools.final void
toEPL
(StringWriter writer, PatternExprPrecedenceEnum parentPrecedence, EPStatementFormatter formatter) Renders the pattern expression and all it's child expressions, in full tree depth, as a string in language syntax.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.EPBaseNamedObject
getName, getNamespace, getParameters, setName, setNamespace, setParameters, toEPL
-
Constructor Details
-
PatternGuardExpr
Ctor - for use to create a pattern expression tree, without pattern child expression.- Parameters:
namespace
- is the guard object namespacename
- is the guard object nameparameters
- is guard object parameters
-
PatternGuardExpr
public PatternGuardExpr(String namespace, String name, Expression[] parameters, PatternExpr guarded) Ctor - for use to create a pattern expression tree, without pattern child expression.- Parameters:
namespace
- is the guard object namespacename
- is the guard object nameparameters
- is guard object parametersguarded
- is the guarded pattern expression
-
PatternGuardExpr
public PatternGuardExpr(String namespace, String name, List<Expression> parameters, PatternExpr guardedPattern) Ctor - for use to create a pattern expression tree, without pattern child expression.- Parameters:
namespace
- is the guard object namespacename
- is the guard object nameparameters
- is guard object parametersguardedPattern
- is the guarded pattern expression
-
-
Method Details
-
getChildren
Description copied from interface:PatternExpr
Returns the list of pattern sub-expressions (child expressions) to the current pattern expression node.- Specified by:
getChildren
in interfacePatternExpr
- Returns:
- pattern child expressions or empty list if there are no child expressions
-
setGuarded
Set sub pattern.- Parameters:
guarded
- sub expression
-
getGuarded
Get sub expression- Returns:
- sub pattern
-
getTreeObjectName
Description copied from interface:PatternExpr
Returns the id for the pattern expression, for use by tools.- Specified by:
getTreeObjectName
in interfacePatternExpr
- Returns:
- id
-
setTreeObjectName
Description copied from interface:PatternExpr
Sets and id for the pattern expression, for use by tools.- Specified by:
setTreeObjectName
in interfacePatternExpr
- Parameters:
treeObjectName
- id
-
getPrecedence
Description copied from interface:PatternExpr
Returns the precedence.- Specified by:
getPrecedence
in interfacePatternExpr
- Returns:
- precedence
-
toEPL
public final void toEPL(StringWriter writer, PatternExprPrecedenceEnum parentPrecedence, EPStatementFormatter formatter) Description copied from interface:PatternExpr
Renders the pattern expression and all it's child expressions, in full tree depth, as a string in language syntax.- Specified by:
toEPL
in interfacePatternExpr
- Parameters:
writer
- is the output to useparentPrecedence
- precedenceformatter
- formatter
-
toPrecedenceFreeEPL
Renders the expressions and all it's child expression, in full tree depth, as a string in language syntax.- Parameters:
writer
- is the output to useformatter
- for newline-whitespace formatting
-
setChildren
Description copied from interface:PatternExpr
Sets the list of pattern sub-expressions (child expressions) to the current pattern expression node.- Specified by:
setChildren
in interfacePatternExpr
- Parameters:
children
- pattern child expressions or empty list if there are no child expressions
-