- public Object call(Object method, JSArray args) throws JS.Exn {
- if (method.equals("exec")) {
- return exec(args);
- } else if (method.equals("test")) {
- return test(args);
- } else if (method.equals("toString")) {
- return toString();
+ public Object callMethod(Object method, Object a0, Object a1, Object a2, Object[] rest, int nargs) {
+ switch(nargs) {
+ case 1: {
+ //#switch(method)
+ case "exec": return exec((String)a0);
+ case "test": return test((String)a0);
+ case "toString": return toString(a0);
+ //#end
+ break;
+ }