1 package gnu.mapping; 2 3 7 8 public abstract class Procedure4 extends Procedure 9 { 10 public Procedure4 () 11 { 12 super(); 13 } 14 15 public Procedure4(java.lang.String n) 16 { 17 super(n); 18 } 19 20 public int numArgs() { return 0x4004; } 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 Object apply3 (Object arg1, Object arg2, Object arg3) 38 { 39 throw new WrongArguments(this, 3); 40 } 41 42 public abstract Object apply4(Object arg1,Object arg2, 43 Object arg3,Object arg4) throws Throwable ; 44 45 public Object applyN (Object [] args) throws Throwable 46 { 47 if (args.length != 4) 48 throw new WrongArguments(this, args.length); 49 return apply4 (args[0], args[1], args[2], args[3]); 50 } 51 } 52 | Popular Tags |