1 package gnu.mapping; 2 3 7 8 public abstract class Procedure1 extends Procedure 9 { 10 public Procedure1 () 11 { 12 super(); 13 } 14 15 public Procedure1(java.lang.String n) 16 { 17 super(n); 18 } 19 20 public int numArgs() { return 0x1001; } 21 22 public Object apply0 () throws Throwable 23 { 24 throw new WrongArguments(this, 0); 25 } 26 27 public abstract Object apply1 (Object arg1) throws Throwable ; 28 29 public Object apply2 (Object arg1,Object arg2) throws Throwable 30 { 31 throw new WrongArguments(this, 2); 32 } 33 34 public Object apply3 (Object arg1, Object arg2, Object arg3) throws Throwable 35 { 36 throw new WrongArguments(this, 3); 37 } 38 39 public Object apply4 (Object arg1, Object arg2, 40 Object arg3, Object arg4) throws Throwable 41 { 42 throw new WrongArguments(this, 4); 43 } 44 45 public Object applyN (Object [] args) throws Throwable 46 { 47 if (args.length != 1) 48 throw new WrongArguments(this, args.length); 49 return apply1 (args[0]); 50 } 51 } 52 | Popular Tags |