net.christopherschultz.evaluator.function
Class ListFunction

java.lang.Object
  extended by net.christopherschultz.evaluator.function.ListFunction
All Implemented Interfaces:
Function

public class ListFunction
extends Object
implements Function

Returns a list containing the arguments to the function.

Usage: list(arg1, arg2, ...)

Returns a list containing all of the function's arguments. An empty argument list returns an empty list.

Version:
$Revision: 1.1 $ $Date: 2009-04-09 15:00:39 $
Author:
Chris Schultz

Constructor Summary
ListFunction()
           
 
Method Summary
 Object call(EvaluationContext ec, String functionName, List argumentExpressions)
          Invokes the function with the specified argument expressions in the specified evaluation context.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ListFunction

public ListFunction()
Method Detail

call

public Object call(EvaluationContext ec,
                   String functionName,
                   List argumentExpressions)
            throws EvaluationException
Description copied from interface: Function
Invokes the function with the specified argument expressions in the specified evaluation context.

Specified by:
call in interface Function
Parameters:
ec - The EvaluationContext in which this function is being called.
functionName - The name of the function being called.
argumentExpressions - The expressions which, when evaluated, result in the arguments to the function.
Returns:
The result of the function.
Throws:
EvaluationException - If there is a problem evaluating any of the arguments' expressions, or if there is an error during function execution.