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
public class FirstOrderOperation extends AbstractOperation
- Since:
- 1.6 Major refactoring - EOL lambdas are converted to Java lambdas.
-
-
Constructor Summary
Constructors Constructor Description FirstOrderOperation()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected static Variable
createIteratorVariable(java.lang.Object item, Parameter parameter, IEolContext context)
java.lang.Object
execute(java.lang.Object target, NameExpression operationNameExpression, java.util.List<Parameter> iterators, java.util.List<Expression> expressions, IEolContext context)
java.lang.Object
execute(java.lang.Object target, Variable iterator, Expression expression, IEolContext context)
Deprecated.Use one of the other execute methods insteadprotected <F> F
resolve(java.lang.Class<?> fType, NameExpression operationNameExpression, java.util.List<Parameter> iterators, Expression expression, IEolContext context)
protected CheckedEolFunction<java.lang.Object,?>
resolveFunction(NameExpression operationNameExpression, java.util.List<Parameter> iterators, Expression expression, IEolContext context)
protected CheckedEolPredicate<java.lang.Object>
resolvePredicate(NameExpression operationNameExpression, java.util.List<Parameter> iterators, Expression expression, IEolContext context)
protected java.util.Collection<java.lang.Object>
resolveSource(java.lang.Object target, java.util.List<Parameter> iterators, IEolContext context)
-
Methods inherited from class org.eclipse.epsilon.eol.execute.operations.AbstractOperation
isOverridable, toString
-
-
-
-
Method Detail
-
createIteratorVariable
protected static Variable createIteratorVariable(java.lang.Object item, Parameter parameter, IEolContext context) throws EolRuntimeException
- Parameters:
item
-parameter
-context
-- Returns:
- Throws:
EolRuntimeException
- Since:
- 1.6
-
resolveSource
protected java.util.Collection<java.lang.Object> resolveSource(java.lang.Object target, java.util.List<Parameter> iterators, IEolContext context) throws EolRuntimeException
- Parameters:
target
-iterators
-context
-- Returns:
- Throws:
EolRuntimeException
- Since:
- 1.6
-
resolveFunction
protected final CheckedEolFunction<java.lang.Object,?> resolveFunction(NameExpression operationNameExpression, java.util.List<Parameter> iterators, Expression expression, IEolContext context) throws EolRuntimeException
- Parameters:
operationNameExpression
-iterators
-expressions
-context
-- Returns:
- Throws:
EolRuntimeException
- Since:
- 1.6
-
resolvePredicate
protected final CheckedEolPredicate<java.lang.Object> resolvePredicate(NameExpression operationNameExpression, java.util.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(java.lang.Class<?> fType, NameExpression operationNameExpression, java.util.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 java.lang.Object execute(java.lang.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 java.lang.Object execute(java.lang.Object target, NameExpression operationNameExpression, java.util.List<Parameter> iterators, java.util.List<Expression> expressions, IEolContext context) throws EolRuntimeException
- Specified by:
execute
in classAbstractOperation
- Throws:
EolRuntimeException
-
-