public abstract class ExprNodeScriptEvalBase extends java.lang.Object implements ExprEvaluator, ExprEnumerationForge, ExprEnumerationEval
Modifier and Type | Field and Description |
---|---|
protected SimpleNumberCoercer |
coercer |
protected EventType |
eventTypeCollection |
protected java.lang.String[] |
names |
protected ExprForge[] |
parameters |
protected ExprNodeScript |
parent |
protected java.lang.Class |
returnType |
protected java.lang.String |
statementName |
Constructor and Description |
---|
ExprNodeScriptEvalBase(ExprNodeScript parent,
java.lang.String statementName,
java.lang.String[] names,
ExprForge[] parameters,
java.lang.Class returnType,
EventType eventTypeCollection) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
evaluate
protected final ExprNodeScript parent
protected final java.lang.String statementName
protected final java.lang.String[] names
protected final ExprForge[] parameters
protected final java.lang.Class returnType
protected final EventType eventTypeCollection
protected final SimpleNumberCoercer coercer
public ExprNodeScriptEvalBase(ExprNodeScript parent, java.lang.String statementName, java.lang.String[] names, ExprForge[] parameters, java.lang.Class returnType, EventType eventTypeCollection)
protected abstract CodegenExpression evaluateCodegen(java.lang.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 java.util.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 java.util.Collection<EventBean> scriptResultToROCollectionEvents(java.lang.Object result)
result
- script resultpublic java.lang.Class getComponentTypeCollection() throws ExprValidationException
getComponentTypeCollection
in interface ExprEnumerationForge
ExprValidationException
public java.util.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