Class ExprDeclaredNodeImpl
java.lang.Object
com.espertech.esper.common.internal.epl.expression.core.ExprNodeBase
com.espertech.esper.common.internal.epl.expression.declared.compiletime.ExprDeclaredNodeImpl
- All Implemented Interfaces:
ExprDeclaredOrLambdaNode
,ExprConstantNode
,ExprFilterOptimizableNode
,ExprNode
,ExprNodeInnerNodeProvider
,ExprNodeRenderable
,ExprValidator
,ExprDeclaredNode
public class ExprDeclaredNodeImpl
extends ExprNodeBase
implements ExprDeclaredNode, ExprDeclaredOrLambdaNode, ExprFilterOptimizableNode, ExprNodeInnerNodeProvider, ExprConstantNode
Expression instance as declared elsewhere.
-
Constructor Summary
ConstructorDescriptionExprDeclaredNodeImpl
(ExpressionDeclItem prototype, List<ExprNode> chainParameters, ContextCompileTimeDescriptor contextDescriptor, ExprNode expressionBodyCopy) -
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(ExprNodeVisitor visitor) Accept the visitor.void
accept
(ExprNodeVisitorWithParent visitor) Accept the visitor.void
acceptChildnodes
(ExprNodeVisitorWithParent visitor, ExprNode parent) Accept a visitor that receives both parent and child node.void
acceptNoVisitParams
(ExprNodeVisitor visitor) void
boolean
boolean
equalsNode
(ExprNode node, boolean ignoreStreamPrefix) Return true if a expression node semantically equals the current node, or false if not.getBody()
boolean
getForge()
getOuterStreamNames
(Map<String, Integer> outerStreamNames) Returns precedence.boolean
void
toPrecedenceFreeEPL
(StringWriter writer, ExprNodeRenderableFlags flags) validate
(ExprValidationContext validationContext) boolean
Methods inherited from class com.espertech.esper.common.internal.epl.expression.core.ExprNodeBase
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.ExprConstantNode
getStringConstantWhenProvided
Methods inherited from interface com.espertech.esper.common.internal.epl.expression.core.ExprNode
addChildNode, addChildNodes, getChildNodes, replaceUnlistedChildNode, setChildNode, setChildNodes
Methods inherited from interface com.espertech.esper.common.internal.epl.expression.core.ExprNodeRenderable
toEPL
-
Constructor Details
-
ExprDeclaredNodeImpl
public ExprDeclaredNodeImpl(ExpressionDeclItem prototype, List<ExprNode> chainParameters, ContextCompileTimeDescriptor contextDescriptor, ExprNode expressionBodyCopy)
-
-
Method Details
-
getForge
-
getBody
- Specified by:
getBody
in interfaceExprDeclaredNode
-
getAdditionalNodes
- Specified by:
getAdditionalNodes
in interfaceExprNodeInnerNodeProvider
-
validated
public boolean validated()- Specified by:
validated
in interfaceExprDeclaredOrLambdaNode
-
constantAvailable
public boolean constantAvailable()- Specified by:
constantAvailable
in interfaceExprConstantNode
-
getConstantType
- Specified by:
getConstantType
in interfaceExprConstantNode
-
getConstantValue
- Specified by:
getConstantValue
in interfaceExprConstantNode
-
getOuterStreamNames
public LinkedHashMap<String,Integer> getOuterStreamNames(Map<String, Integer> outerStreamNames) throws ExprValidationException- Specified by:
getOuterStreamNames
in interfaceExprDeclaredNode
- Throws:
ExprValidationException
-
validate
- Specified by:
validate
in interfaceExprValidator
- Throws:
ExprValidationException
-
getFilterLookupEligible
public boolean getFilterLookupEligible()- Specified by:
getFilterLookupEligible
in interfaceExprFilterOptimizableNode
-
getFilterLookupable
- Specified by:
getFilterLookupable
in interfaceExprFilterOptimizableNode
-
isConstantResult
public boolean isConstantResult() -
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
-
accept
Description copied from interface:ExprNode
Accept the visitor. The visitor will first visit the parent then visit all child nodes, then their child nodes.The visitor can decide to skip child nodes by returning false in isVisit.
- Specified by:
accept
in interfaceExprNode
- Overrides:
accept
in classExprNodeBase
- Parameters:
visitor
- to visit each node and each child node.
-
acceptNoVisitParams
- Specified by:
acceptNoVisitParams
in interfaceExprDeclaredNode
-
accept
Description copied from interface:ExprNode
Accept the visitor. The visitor will first visit the parent then visit all child nodes, then their child nodes.The visitor can decide to skip child nodes by returning false in isVisit.
- Specified by:
accept
in interfaceExprNode
- Overrides:
accept
in classExprNodeBase
- Parameters:
visitor
- to visit each node and each child node.
-
acceptNoVisitParams
- Specified by:
acceptNoVisitParams
in interfaceExprDeclaredNode
-
acceptChildnodes
Description copied from interface:ExprNode
Accept a visitor that receives both parent and child node.- Specified by:
acceptChildnodes
in interfaceExprNode
- Overrides:
acceptChildnodes
in classExprNodeBase
- Parameters:
visitor
- to applyparent
- node
-
getExpressionBodyCopy
-
getPrototype
- Specified by:
getPrototype
in interfaceExprDeclaredNode
-
getPrototypeWVisibility
-
getChainParameters
- Specified by:
getChainParameters
in interfaceExprDeclaredNode
-
getExprEvaluator
-
toPrecedenceFreeEPL
- Specified by:
toPrecedenceFreeEPL
in classExprNodeBase
-
getPrecedence
Description copied from interface:ExprNode
Returns precedence.- Specified by:
getPrecedence
in interfaceExprNode
- Returns:
- precedence
-