Package org.eclipse.epsilon.eol.function
Class EolLambdaFactory
java.lang.Object
org.eclipse.epsilon.eol.function.EolLambdaFactory
Utility class for converting EOL lambdas to Java lambdas.
- Since:
- 1.6
- Author:
- Sina Madani
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <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.
-
Constructor Details
-
EolLambdaFactory
public EolLambdaFactory()
-
-
Method Details
-
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
-