Package org.eclipse.epsilon.eol.function
Class EolLambdaFactory
- java.lang.Object
-
- org.eclipse.epsilon.eol.function.EolLambdaFactory
-
public class EolLambdaFactory extends java.lang.Object
Utility class for converting EOL lambdas to Java lambdas.- Since:
- 1.6
- Author:
- Sina Madani
-
-
Constructor Summary
Constructors Constructor Description EolLambdaFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <R> R
executeExpression(IEolContext context, ModuleElement ast, java.lang.Class<R> expectedReturnType, Expression expression, java.util.List<Parameter> params, java.lang.Object... paramValues)
static java.lang.Object
resolveFor(java.lang.Class<?> clazz, java.util.List<Parameter> iteratorParams, Expression lambdaExpr, ModuleElement ast, IEolContext context)
static java.lang.Object
resolveFor(java.lang.String clazzName, java.util.List<Parameter> iteratorParams, Expression lambdaExpr, ModuleElement ast, IEolContext context)
Validation of parameters is assumed to have already been performed in DynamicOperation or by the caller.
-
-
-
Method Detail
-
resolveFor
public static java.lang.Object resolveFor(java.lang.Class<?> clazz, java.util.List<Parameter> iteratorParams, Expression lambdaExpr, ModuleElement ast, IEolContext context) throws EolIllegalOperationException
- Throws:
EolIllegalOperationException
-
resolveFor
public static java.lang.Object resolveFor(java.lang.String clazzName, java.util.List<Parameter> iteratorParams, Expression lambdaExpr, ModuleElement ast, IEolContext context) throws EolIllegalOperationException
Validation of parameters is assumed to have already been performed in DynamicOperation or by the caller.- Parameters:
clazzName
-iteratorParams
-lambdaExprs
-context
-- Returns:
- Throws:
EolIllegalOperationException
-
executeExpression
public static <R> R executeExpression(IEolContext context, ModuleElement ast, java.lang.Class<R> expectedReturnType, Expression expression, java.util.List<Parameter> params, java.lang.Object... paramValues) throws EolRuntimeException
- Throws:
EolRuntimeException
-
-