net.christopherschultz.evaluator
Interface Function

All Known Implementing Classes:
BinaryOperator, BinaryOperator.Add, BinaryOperator.And, BinaryOperator.Divide, BinaryOperator.Equal, BinaryOperator.Greater, BinaryOperator.GreaterEqual, BinaryOperator.Less, BinaryOperator.LessEqual, BinaryOperator.Modulus, BinaryOperator.Multiply, BinaryOperator.NotEqual, BinaryOperator.Or, BinaryOperator.Subtract, CallFunction, ContainsAllFunction, ContainsAnyFunction, CountMatchesFunction, Difference, DistributeFunction, GetVariableFunction, IfFunction, IJWInvocation, IsNullFunction, LambdaFunction, LengthFunction, ListFunction, MathFunction, MathFunction.abs, MathFunction.acos, MathFunction.asin, MathFunction.atan, MathFunction.ceil, MathFunction.cos, MathFunction.DoubleFunction, MathFunction.exp, MathFunction.floor, MathFunction.heaviside, MathFunction.log, MathFunction.max, MathFunction.min, MathFunction.pow, MathFunction.random, MathFunction.rint, MathFunction.sin, MathFunction.sqrt, MathFunction.tan, MathFunction.toDegrees, MathFunction.toRadians, MemoryFunction, NewObjectFunction, NonShortCircuitAnd, NullFunction, QuoteFunction, SetVariableFunction, ShortCircuitAnd, ShortCircuitOr, StandardFunction, Summation, UnsetVariableFunction, VariablesFunction

public interface Function

An interface to describe functions callable from expressions.

Version:
$Revision: 1.2 $ $Date: 2008-06-20 22:58:48 $
Author:
Chris Schultz
See Also:
StandardFunction

Method Summary
 Object call(EvaluationContext ec, String functionName, List argumentExpressions)
          Invokes the function with the specified argument expressions in the specified evaluation context.
 

Method Detail

call

Object call(EvaluationContext ec,
            String functionName,
            List argumentExpressions)
            throws EvaluationException
Invokes the function with the specified argument expressions in the specified evaluation context.

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.