01: package murlen.util.fscript;
02:
03: import java.util.ArrayList;
04:
05: /**
06: * <p>FSFunctionExtension - simple function extension to plug into FSFastExtension
07: * </p>
08: * <p>
09: * <I>Copyright (C) 2002 </I></p>
10: * <p>
11: * This library is free software; you can redistribute it and/or
12: * modify it under the terms of the GNU Library General Public
13: * License as published by the Free Software Foundation; either
14: * version 2 of the License, or (at your option) any later version.</p>
15: * <p>
16: * This library is distributed in the hope that it will be useful,
17: * but WITHOUT ANY WARRANTY; without even the implied warranty of
18: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19: * Library General Public License for more details.</p>
20: *
21: * <p>You should have received a copy of the GNU Library General Public
22: * License along with this library; if not, write to the Free
23: * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA </p>
24: *
25: * @author Joachim Van der Auwera
26: *
27: * modifications by Joachim Van der Auwera
28: * 02.08.2002 started
29: */
30: public interface FSFunctionExtension {
31:
32: /**
33: * <p>callFunction is called whenever a function call is made in FScript to a
34: * function not defined withing hte script itself</p>
35: * @param name the name of the function
36: * @param params an array list of parameters passed to the function
37: * @return the return value (Object) of the call
38: **/
39: public Object callFunction(String name, ArrayList params)
40: throws FSException;
41:
42: }
|