Class ExprNodeScript
java.lang.Object
com.espertech.esper.common.internal.epl.expression.core.ExprNodeBase
com.espertech.esper.common.internal.epl.script.core.ExprNodeScript
- All Implemented Interfaces:
ExprEnumerationForge
,ExprForge
,ExprNode
,ExprNodeInnerNodeProvider
,ExprNodeRenderable
,ExprValidator
public class ExprNodeScript
extends ExprNodeBase
implements ExprForge, ExprEnumerationForge, ExprNodeInnerNodeProvider
-
Field Summary
-
Constructor Summary
ConstructorDescriptionExprNodeScript
(String defaultDialect, ExpressionScriptProvided script, List<ExprNode> parameters) -
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.boolean
equalsNode
(ExprNode node, boolean ignoreStreamPrefix) Return true if a expression node semantically equals the current node, or false if not.evaluateCodegen
(EPTypeClass requiredType, CodegenMethodScope codegenMethodScope, ExprForgeCodegenSymbol symbols, CodegenClassScope codegenClassScope) evaluateGetEventBeanCodegen
(CodegenMethodScope codegenMethodScope, ExprForgeCodegenSymbol symbols, CodegenClassScope codegenClassScope) evaluateGetROCollectionEventsCodegen
(CodegenMethodScope codegenMethodScope, ExprForgeCodegenSymbol symbols, CodegenClassScope codegenClassScope) evaluateGetROCollectionScalarCodegen
(CodegenMethodScope codegenMethodScope, ExprForgeCodegenSymbol symbols, CodegenClassScope codegenClassScope) getEventTypeCollection
(StatementRawInfo statementRawInfo, StatementCompileTimeServices compileTimeServices) getEventTypeSingle
(StatementRawInfo statementRawInfo, StatementCompileTimeServices compileTimeServices) getField
(CodegenClassScope codegenClassScope) getForge()
Returns precedence.boolean
void
toPrecedenceFreeEPL
(StringWriter writer, ExprNodeRenderableFlags flags) validate
(ExprValidationContext validationContext) Methods inherited from class com.espertech.esper.common.internal.epl.expression.core.ExprNodeBase
addChildNode, addChildNodes, addChildNodeToFront, checkValidated, checkValidatedException, getChildNodes, replaceUnlistedChildNode, setChildNode, setChildNodes, toEPL
-
Field Details
-
CONTEXT_BINDING_NAME
- See Also:
-
-
Constructor Details
-
ExprNodeScript
public ExprNodeScript(String defaultDialect, ExpressionScriptProvided script, List<ExprNode> parameters)
-
-
Method Details
-
getForge
-
getAdditionalNodes
- Specified by:
getAdditionalNodes
in interfaceExprNodeInnerNodeProvider
-
getParameters
-
getEventTypeNameAnnotation
-
toPrecedenceFreeEPL
- Specified by:
toPrecedenceFreeEPL
in classExprNodeBase
-
getPrecedence
Description copied from interface:ExprNode
Returns precedence.- Specified by:
getPrecedence
in interfaceExprNode
- Returns:
- precedence
-
getScript
-
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
-
validate
- Specified by:
validate
in interfaceExprValidator
- Throws:
ExprValidationException
-
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.
-
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.
-
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
-
getExprEvaluator
- Specified by:
getExprEvaluator
in interfaceExprForge
-
getEvaluationType
- Specified by:
getEvaluationType
in interfaceExprForge
-
getForgeConstantType
- Specified by:
getForgeConstantType
in interfaceExprForge
-
getForgeRenderable
- Specified by:
getForgeRenderable
in interfaceExprEnumerationForge
- Specified by:
getForgeRenderable
in interfaceExprForge
-
getComponentTypeCollection
- Specified by:
getComponentTypeCollection
in interfaceExprEnumerationForge
- Throws:
ExprValidationException
-
getEventTypeCollection
public EventType getEventTypeCollection(StatementRawInfo statementRawInfo, StatementCompileTimeServices compileTimeServices) throws ExprValidationException - Specified by:
getEventTypeCollection
in interfaceExprEnumerationForge
- Throws:
ExprValidationException
-
getEventTypeSingle
public EventType getEventTypeSingle(StatementRawInfo statementRawInfo, StatementCompileTimeServices compileTimeServices) throws ExprValidationException - Specified by:
getEventTypeSingle
in interfaceExprEnumerationForge
- Throws:
ExprValidationException
-
evaluateCodegen
public CodegenExpression evaluateCodegen(EPTypeClass requiredType, CodegenMethodScope codegenMethodScope, ExprForgeCodegenSymbol symbols, CodegenClassScope codegenClassScope) - Specified by:
evaluateCodegen
in interfaceExprForge
-
evaluateGetROCollectionEventsCodegen
public CodegenExpression evaluateGetROCollectionEventsCodegen(CodegenMethodScope codegenMethodScope, ExprForgeCodegenSymbol symbols, CodegenClassScope codegenClassScope) - Specified by:
evaluateGetROCollectionEventsCodegen
in interfaceExprEnumerationForge
-
evaluateGetROCollectionScalarCodegen
public CodegenExpression evaluateGetROCollectionScalarCodegen(CodegenMethodScope codegenMethodScope, ExprForgeCodegenSymbol symbols, CodegenClassScope codegenClassScope) - Specified by:
evaluateGetROCollectionScalarCodegen
in interfaceExprEnumerationForge
-
evaluateGetEventBeanCodegen
public CodegenExpression evaluateGetEventBeanCodegen(CodegenMethodScope codegenMethodScope, ExprForgeCodegenSymbol symbols, CodegenClassScope codegenClassScope) - Specified by:
evaluateGetEventBeanCodegen
in interfaceExprEnumerationForge
-
getField
-
getExprEvaluatorEnumeration
- Specified by:
getExprEvaluatorEnumeration
in interfaceExprEnumerationForge
-