net.christopherschultz.evaluator.function
Class DistributeFunction
java.lang.Object
net.christopherschultz.evaluator.StandardFunction
net.christopherschultz.evaluator.function.DistributeFunction
- All Implemented Interfaces:
- Function
public class DistributeFunction
- extends StandardFunction
Executes a function on the remaining parameters, returning an array.
Usage: distribute(f: Function, arg1, ..., argN)
Returns an array containing all of the results of calling the function
f
for each other argument individually.
- Version:
- $Revision: 1.2 $ $Date: 2008-06-20 22:58:48 $
- Author:
- Chris Schultz
DistributeFunction
public DistributeFunction()
call
public Object call(EvaluationContext ec,
String functionName,
Object[] arguments)
throws EvaluationException
- Description copied from class:
StandardFunction
- Calls this function with standard argument evaluation semantics.
- Specified by:
call
in class StandardFunction
- Parameters:
ec
- The EvaluationContext in which this function is being called.functionName
- The name of the function being invoked.arguments
- The argument values to pass to this function.
- Returns:
- The result of the function.
- Throws:
EvaluationException
- If there is an error during function
execution.