com.espertech.esper.epl.expression.dot.inner.InnerDotEnumerableEventBeanForge Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of esper Show documentation
Show all versions of esper Show documentation
Complex event processing and event series analysis component
/*
***************************************************************************************
* Copyright (C) 2006 EsperTech, Inc. All rights reserved. *
* http://www.espertech.com/esper *
* http://www.espertech.com *
* ---------------------------------------------------------------------------------- *
* The software in this package is published under the terms of the GPL license *
* a copy of which has been included with this distribution in the license.txt file. *
***************************************************************************************
*/
package com.espertech.esper.epl.expression.dot.inner;
import com.espertech.esper.client.EventType;
import com.espertech.esper.codegen.base.CodegenClassScope;
import com.espertech.esper.codegen.model.expression.CodegenExpression;
import com.espertech.esper.epl.expression.codegen.ExprForgeCodegenSymbol;
import com.espertech.esper.codegen.base.CodegenMethodNode;
import com.espertech.esper.epl.expression.core.ExprEnumerationForge;
import com.espertech.esper.epl.expression.dot.ExprDotEvalRootChildInnerEval;
import com.espertech.esper.epl.expression.dot.ExprDotEvalRootChildInnerForge;
import com.espertech.esper.epl.rettype.EPType;
import com.espertech.esper.epl.rettype.EPTypeHelper;
public class InnerDotEnumerableEventBeanForge implements ExprDotEvalRootChildInnerForge {
protected final ExprEnumerationForge rootLambdaForge;
protected final EventType eventType;
public InnerDotEnumerableEventBeanForge(ExprEnumerationForge rootLambdaForge, EventType eventType) {
this.rootLambdaForge = rootLambdaForge;
this.eventType = eventType;
}
public ExprDotEvalRootChildInnerEval getInnerEvaluator() {
return new InnerDotEnumerableEventBeanEval(rootLambdaForge.getExprEvaluatorEnumeration());
}
public CodegenExpression codegenEvaluate(CodegenMethodNode parentMethod, ExprForgeCodegenSymbol exprSymbol, CodegenClassScope codegenClassScope) {
return rootLambdaForge.evaluateGetEventBeanCodegen(parentMethod, exprSymbol, codegenClassScope);
}
public CodegenExpression evaluateGetROCollectionEventsCodegen(CodegenMethodNode parentMethod, ExprForgeCodegenSymbol exprSymbol, CodegenClassScope codegenClassScope) {
return rootLambdaForge.evaluateGetROCollectionEventsCodegen(parentMethod, exprSymbol, codegenClassScope);
}
public CodegenExpression evaluateGetROCollectionScalarCodegen(CodegenMethodNode parentMethod, ExprForgeCodegenSymbol exprSymbol, CodegenClassScope codegenClassScope) {
return rootLambdaForge.evaluateGetROCollectionScalarCodegen(parentMethod, exprSymbol, codegenClassScope);
}
public CodegenExpression evaluateGetEventBeanCodegen(CodegenMethodNode parentMethod, ExprForgeCodegenSymbol exprSymbol, CodegenClassScope codegenClassScope) {
return rootLambdaForge.evaluateGetEventBeanCodegen(parentMethod, exprSymbol, codegenClassScope);
}
public EventType getEventTypeCollection() {
return null;
}
public Class getComponentTypeCollection() {
return null;
}
public EventType getEventTypeSingle() {
return eventType;
}
public EPType getTypeInfo() {
return EPTypeHelper.singleEvent(eventType);
}
}