public abstract class ExprNodeScriptEvalBase extends Object implements ExprEvaluator, ExprEnumerationForge, ExprEnumerationEval
Modifier and Type | Field and Description |
---|---|
protected SimpleNumberCoercer |
coercer |
protected EventType |
eventTypeCollection |
protected String[] |
names |
protected ExprForge[] |
parameters |
protected ExprNodeScript |
parent |
protected Class |
returnType |
protected String |
statementName |
Constructor and Description |
---|
ExprNodeScriptEvalBase(ExprNodeScript parent,
String statementName,
String[] names,
ExprForge[] parameters,
Class returnType,
EventType eventTypeCollection) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
evaluate
protected final ExprNodeScript parent
protected final String statementName
protected final String[] names
protected final ExprForge[] parameters
protected final Class returnType
protected final EventType eventTypeCollection
protected final SimpleNumberCoercer coercer
protected abstract CodegenExpression evaluateCodegen(Class requiredType, CodegenMethodScope codegenMethodScope, ExprForgeCodegenSymbol exprSymbol, CodegenClassScope codegenClassScope)
public ExprEnumerationEval getExprEvaluatorEnumeration()
getExprEvaluatorEnumeration
in interface ExprEnumerationForge
public EventType getEventTypeCollection(EventAdapterService eventAdapterService, int statementId) throws ExprValidationException
getEventTypeCollection
in interface ExprEnumerationForge
ExprValidationException
public Collection<EventBean> evaluateGetROCollectionEvents(EventBean[] eventsPerStream, boolean isNewData, ExprEvaluatorContext context)
evaluateGetROCollectionEvents
in interface ExprEnumerationEval
public CodegenExpression evaluateGetROCollectionEventsCodegen(CodegenMethodScope codegenMethodScope, ExprForgeCodegenSymbol exprSymbol, CodegenClassScope codegenClassScope)
evaluateGetROCollectionEventsCodegen
in interface ExprEnumerationForge
public static Collection<EventBean> scriptResultToROCollectionEvents(Object result)
result
- script resultpublic Class getComponentTypeCollection() throws ExprValidationException
getComponentTypeCollection
in interface ExprEnumerationForge
ExprValidationException
public Collection evaluateGetROCollectionScalar(EventBean[] eventsPerStream, boolean isNewData, ExprEvaluatorContext context)
evaluateGetROCollectionScalar
in interface ExprEnumerationEval
public CodegenExpression evaluateGetROCollectionScalarCodegen(CodegenMethodScope codegenMethodScope, ExprForgeCodegenSymbol exprSymbol, CodegenClassScope codegenClassScope)
evaluateGetROCollectionScalarCodegen
in interface ExprEnumerationForge
public EventType getEventTypeSingle(EventAdapterService eventAdapterService, int statementId) throws ExprValidationException
getEventTypeSingle
in interface ExprEnumerationForge
ExprValidationException
public EventBean evaluateGetEventBean(EventBean[] eventsPerStream, boolean isNewData, ExprEvaluatorContext context)
evaluateGetEventBean
in interface ExprEnumerationEval
public CodegenExpression evaluateGetEventBeanCodegen(CodegenMethodScope codegenMethodScope, ExprForgeCodegenSymbol exprSymbol, CodegenClassScope codegenClassScope)
evaluateGetEventBeanCodegen
in interface ExprEnumerationForge
public ExprNodeRenderable getForgeRenderable()
getForgeRenderable
in interface ExprEnumerationForge