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