public class ExprNodeScript extends ExprNodeBase implements ExprForge, ExprEnumerationForge, ExprNodeInnerNodeProvider
Modifier and Type | Field and Description |
---|---|
static String |
CONTEXT_BINDING_NAME |
Constructor and Description |
---|
ExprNodeScript(String defaultDialect,
ExpressionScriptProvided script,
List<ExprNode> parameters) |
addChildNode, addChildNodes, addChildNodeToFront, checkValidated, checkValidatedException, getChildNodes, replaceUnlistedChildNode, setChildNode, setChildNodes, toEPL
public static final String CONTEXT_BINDING_NAME
public ExprNodeScript(String defaultDialect, ExpressionScriptProvided script, List<ExprNode> parameters)
public List<ExprNode> getAdditionalNodes()
getAdditionalNodes
in interface ExprNodeInnerNodeProvider
public String getEventTypeNameAnnotation()
public void toPrecedenceFreeEPL(StringWriter writer)
toPrecedenceFreeEPL
in class ExprNodeBase
public ExprPrecedenceEnum getPrecedence()
ExprNode
getPrecedence
in interface ExprNode
public ExpressionScriptProvided getScript()
public boolean isConstantResult()
public boolean equalsNode(ExprNode node, boolean ignoreStreamPrefix)
ExprNode
Concrete implementations should compare the type and any additional information that impact the evaluation of a node.
equalsNode
in interface ExprNode
node
- to compare toignoreStreamPrefix
- when the equals-comparison can ignore prefix of event propertiespublic ExprNode validate(ExprValidationContext validationContext) throws ExprValidationException
validate
in interface ExprValidator
ExprValidationException
public void accept(ExprNodeVisitor visitor)
ExprNode
The visitor can decide to skip child nodes by returning false in isVisit.
accept
in interface ExprNode
accept
in class ExprNodeBase
visitor
- to visit each node and each child node.public void accept(ExprNodeVisitorWithParent visitor)
ExprNode
The visitor can decide to skip child nodes by returning false in isVisit.
accept
in interface ExprNode
accept
in class ExprNodeBase
visitor
- to visit each node and each child node.public void acceptChildnodes(ExprNodeVisitorWithParent visitor, ExprNode parent)
ExprNode
acceptChildnodes
in interface ExprNode
acceptChildnodes
in class ExprNodeBase
visitor
- to applyparent
- nodepublic ExprEvaluator getExprEvaluator()
getExprEvaluator
in interface ExprForge
public Class getEvaluationType()
getEvaluationType
in interface ExprForge
public ExprForgeConstantType getForgeConstantType()
getForgeConstantType
in interface ExprForge
public ExprNodeRenderable getForgeRenderable()
getForgeRenderable
in interface ExprEnumerationForge
getForgeRenderable
in interface ExprForge
public Class getComponentTypeCollection() throws ExprValidationException
getComponentTypeCollection
in interface ExprEnumerationForge
ExprValidationException
public EventType getEventTypeCollection(StatementRawInfo statementRawInfo, StatementCompileTimeServices compileTimeServices) throws ExprValidationException
getEventTypeCollection
in interface ExprEnumerationForge
ExprValidationException
public EventType getEventTypeSingle(StatementRawInfo statementRawInfo, StatementCompileTimeServices compileTimeServices) throws ExprValidationException
getEventTypeSingle
in interface ExprEnumerationForge
ExprValidationException
public CodegenExpression evaluateCodegen(Class requiredType, CodegenMethodScope codegenMethodScope, ExprForgeCodegenSymbol symbols, CodegenClassScope codegenClassScope)
evaluateCodegen
in interface ExprForge
public CodegenExpression evaluateGetROCollectionEventsCodegen(CodegenMethodScope codegenMethodScope, ExprForgeCodegenSymbol symbols, CodegenClassScope codegenClassScope)
evaluateGetROCollectionEventsCodegen
in interface ExprEnumerationForge
public CodegenExpression evaluateGetROCollectionScalarCodegen(CodegenMethodScope codegenMethodScope, ExprForgeCodegenSymbol symbols, CodegenClassScope codegenClassScope)
evaluateGetROCollectionScalarCodegen
in interface ExprEnumerationForge
public CodegenExpression evaluateGetEventBeanCodegen(CodegenMethodScope codegenMethodScope, ExprForgeCodegenSymbol symbols, CodegenClassScope codegenClassScope)
evaluateGetEventBeanCodegen
in interface ExprEnumerationForge
public CodegenExpressionField getField(CodegenClassScope codegenClassScope)
public ExprEnumerationEval getExprEvaluatorEnumeration()
getExprEvaluatorEnumeration
in interface ExprEnumerationForge
Copyright © 2005–2018. All rights reserved.