Package org.eclipse.epsilon.eol.function
Class EolLambdaFactory
- java.lang.Object
-
- org.eclipse.epsilon.eol.function.EolLambdaFactory
-
public class EolLambdaFactory extends 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, Class<R> expectedReturnType, Expression expression, List<Parameter> params, Object... paramValues)
static Object
resolveFor(Class<?> clazz, List<Parameter> iteratorParams, Expression lambdaExpr, ModuleElement ast, IEolContext context)
static Object
resolveFor(String clazzName, 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 Object resolveFor(Class<?> clazz, List<Parameter> iteratorParams, Expression lambdaExpr, ModuleElement ast, IEolContext context) throws EolIllegalOperationException
- Throws:
EolIllegalOperationException
-
resolveFor
public static Object resolveFor(String clazzName, 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, Class<R> expectedReturnType, Expression expression, List<Parameter> params, Object... paramValues) throws EolRuntimeException
- Throws:
EolRuntimeException
-
-