1 16 package net.sf.cglib.proxy; 17 18 public abstract class Source implements java.io.Serializable { 19 20 public static class CheckedException extends Exception {} 21 public static class UndeclaredException extends Exception {} 22 23 public String toString(){ 24 return ""; 25 } 26 public Source() { 27 } 28 29 public void callAll(){ 30 protectedMethod(); 31 packageMethod(); 32 abstractMethod(); 33 synchronizedMethod(); 34 finalMethod(); 35 intType(1); 36 longType(1L); 37 floatType(1f); 38 doubleType(1.0); 39 objectType("1") ; 40 voidType(); 41 multiArg(1,1,1,1,"","",""); 42 } 43 44 protected void protectedMethod(){} 45 46 void packageMethod(){} 47 48 abstract void abstractMethod(); 49 50 public void throwChecked()throws CheckedException{ 51 throw new CheckedException(); 52 } 53 54 55 56 public void throwIndexOutOfBoundsException(){ 57 throw new IndexOutOfBoundsException (); 58 } 59 60 public void throwAbstractMethodError(){ 61 throw new AbstractMethodError (); 62 } 63 64 65 public synchronized void synchronizedMethod(){} 66 67 public final void finalMethod(){ } 68 69 public int intType(int val){ 70 return val; 71 } 72 public long longType(long val){ 73 return val; 74 } 75 public double doubleType(double val){ 76 return val; 77 } 78 public float floatType(float val){ 79 return val; 80 } 81 82 public boolean booleanType(boolean val){ 83 return val; 84 } 85 86 public short shortType(short val){ 87 return val; 88 } 89 90 public char charType(char val){ 91 return val; 92 } 93 94 public byte byteType(byte val){ 95 return val; 96 } 97 98 public int [] arrayType(int val[]){ 99 return val; 100 } 101 102 public String [] arrayType(String val[]){ 103 return val; 104 } 105 106 107 108 public Object objectType(Object val){ 109 return val; 110 } 111 public void voidType(){ 112 113 } 114 public void multiArg( int arg1, long arg2, 115 double arg3, float arg4, Object arg5, Object arg6, Object arg7 ){ 116 117 } 118 119 } 120 | Popular Tags |