Class ExprBetweenNodeImpl
java.lang.Object
com.espertech.esper.common.internal.epl.expression.core.ExprNodeBase
com.espertech.esper.common.internal.epl.expression.ops.ExprBetweenNodeImpl
- All Implemented Interfaces:
ExprNode
,ExprNodeRenderable
,ExprValidator
,ExprBetweenNode
Represents the between-clause function in an expression tree.
-
Nested Class Summary
Modifier and TypeClassDescriptionprotected static interface
protected static class
protected static class
protected static class
protected static class
protected static class
-
Constructor Summary
ConstructorDescriptionExprBetweenNodeImpl
(boolean lowEndpointIncluded, boolean highEndpointIncluded, boolean notBetween) Ctor. -
Method Summary
Modifier and TypeMethodDescriptionboolean
equalsNode
(ExprNode node, boolean ignoreStreamPrefix) Return true if a expression node semantically equals the current node, or false if not.getForge()
Returns precedence.boolean
boolean
Returns true if the high endpoint is included, false if notboolean
Returns true if the low endpoint is included, false if notboolean
Returns true for inverted range, or false for regular (openn/close/half-open/half-closed) ranges.void
toPrecedenceFreeEPL
(StringWriter writer, ExprNodeRenderableFlags flags) validate
(ExprValidationContext validationContext) Methods inherited from class com.espertech.esper.common.internal.epl.expression.core.ExprNodeBase
accept, accept, acceptChildnodes, addChildNode, addChildNodes, addChildNodeToFront, checkValidated, checkValidatedException, getChildNodes, replaceUnlistedChildNode, setChildNode, setChildNodes, toEPL
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.espertech.esper.common.internal.epl.expression.core.ExprNode
accept, accept, acceptChildnodes, addChildNode, addChildNodes, getChildNodes, replaceUnlistedChildNode, setChildNode, setChildNodes
Methods inherited from interface com.espertech.esper.common.internal.epl.expression.core.ExprNodeRenderable
toEPL
-
Constructor Details
-
ExprBetweenNodeImpl
public ExprBetweenNodeImpl(boolean lowEndpointIncluded, boolean highEndpointIncluded, boolean notBetween) Ctor.- Parameters:
lowEndpointIncluded
- is true for the regular 'between' or false for "val in (a:b)" (open range), or false if the endpoint is not includedhighEndpointIncluded
- indicates whether the high endpoint is includednotBetween
- is true for 'not between' or 'not in (a:b), or false for a regular between
-
-
Method Details
-
getExprEvaluator
-
getForge
-
isConstantResult
public boolean isConstantResult() -
isLowEndpointIncluded
public boolean isLowEndpointIncluded()Returns true if the low endpoint is included, false if not- Specified by:
isLowEndpointIncluded
in interfaceExprBetweenNode
- Returns:
- indicator if endppoint is included
-
isHighEndpointIncluded
public boolean isHighEndpointIncluded()Returns true if the high endpoint is included, false if not- Specified by:
isHighEndpointIncluded
in interfaceExprBetweenNode
- Returns:
- indicator if endppoint is included
-
isNotBetween
public boolean isNotBetween()Returns true for inverted range, or false for regular (openn/close/half-open/half-closed) ranges.- Specified by:
isNotBetween
in interfaceExprBetweenNode
- Returns:
- true for not betwene, false for between
-
validate
- Specified by:
validate
in interfaceExprValidator
- Throws:
ExprValidationException
-
equalsNode
Description copied from interface:ExprNode
Return true if a expression node semantically equals the current node, or false if not.Concrete implementations should compare the type and any additional information that impact the evaluation of a node.
- Specified by:
equalsNode
in interfaceExprNode
- Parameters:
node
- to compare toignoreStreamPrefix
- when the equals-comparison can ignore prefix of event properties- Returns:
- true if semantically equal, or false if not equals
-
toPrecedenceFreeEPL
- Specified by:
toPrecedenceFreeEPL
in classExprNodeBase
-
getPrecedence
Description copied from interface:ExprNode
Returns precedence.- Specified by:
getPrecedence
in interfaceExprNode
- Returns:
- precedence
-