Lisp for Java Users: Special Function Cell
public class SpecialFunctionCell implements FunctionCell
{
private final Method method;
public SpecialFunctionCell (final Method method)
{
this.method = method;
}
@Override
public Object evalExpression (Interpreter interpreter, List<?> expression)
throws Exception
{
return method.invoke (null, interpreter, expression);
}
}