Class FirstOrderOperation
java.lang.Object
org.eclipse.epsilon.eol.execute.operations.AbstractOperation
org.eclipse.epsilon.eol.execute.operations.declarative.FirstOrderOperation
- Direct Known Subclasses:
AggregateOperation,ClosureOperation,CollectOperation,CountOperation,DelegateBasedOperation,MapByOperation,NMatchOperation,SelectOperation
- Since:
- 1.6 Major refactoring - EOL lambdas are converted to Java lambdas.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static VariablecreateIteratorVariable(Object item, Parameter parameter, IEolContext context) execute(Object target, NameExpression operationNameExpression, List<Parameter> iterators, List<Expression> expressions, IEolContext context) execute(Object target, Variable iterator, Expression expression, IEolContext context) Deprecated.Use one of the other execute methods insteadprotected <F> Fresolve(Class<?> fType, NameExpression operationNameExpression, List<Parameter> iterators, Expression expression, IEolContext context) protected final CheckedEolFunction<Object,?> resolveFunction(NameExpression operationNameExpression, List<Parameter> iterators, Expression expression, IEolContext context) protected final CheckedEolPredicate<Object>resolvePredicate(NameExpression operationNameExpression, List<Parameter> iterators, Expression expression, IEolContext context) protected Collection<Object>resolveSource(Object target, List<Parameter> iterators, IEolContext context) Methods inherited from class org.eclipse.epsilon.eol.execute.operations.AbstractOperation
isOverridable, toString
-
Constructor Details
-
FirstOrderOperation
public FirstOrderOperation()
-
-
Method Details
-
createIteratorVariable
protected static Variable createIteratorVariable(Object item, Parameter parameter, IEolContext context) throws EolRuntimeException - Parameters:
item-parameter-context-- Returns:
- Throws:
EolRuntimeException- Since:
- 1.6
-
resolveSource
protected Collection<Object> resolveSource(Object target, List<Parameter> iterators, IEolContext context) throws EolRuntimeException - Parameters:
target-iterators-context-- Returns:
- Throws:
EolRuntimeException- Since:
- 1.6
-
resolveFunction
protected final CheckedEolFunction<Object,?> resolveFunction(NameExpression operationNameExpression, List<Parameter> iterators, Expression expression, IEolContext context) throws EolRuntimeException - Parameters:
operationNameExpression-iterators-expressions-context-- Returns:
- Throws:
EolRuntimeException- Since:
- 1.6
-
resolvePredicate
protected final CheckedEolPredicate<Object> resolvePredicate(NameExpression operationNameExpression, List<Parameter> iterators, Expression expression, IEolContext context) throws EolRuntimeException - Parameters:
operationNameExpression-iterators-expressions-context-- Returns:
- Throws:
EolRuntimeException- Since:
- 1.6
-
resolve
protected <F> F resolve(Class<?> fType, NameExpression operationNameExpression, List<Parameter> iterators, Expression expression, IEolContext context) throws EolRuntimeException - Type Parameters:
F-- Parameters:
fType-operationNameExpression-iterators-expression-context-- Returns:
- Throws:
EolRuntimeException- Since:
- 1.6
-
execute
@Deprecated public Object execute(Object target, Variable iterator, Expression expression, IEolContext context) throws EolRuntimeException Deprecated.Use one of the other execute methods instead1.5 API-compatible UnsupportedOperationException-throwing implementation of execute()- Throws:
EolRuntimeException
-
execute
public Object execute(Object target, NameExpression operationNameExpression, List<Parameter> iterators, List<Expression> expressions, IEolContext context) throws EolRuntimeException - Specified by:
executein classAbstractOperation- Throws:
EolRuntimeException
-