1 15 16 package com.jdon.bussinessproxy.meta; 17 18 public class MethodMetaArgs implements java.io.Serializable { 19 20 private String methodName; 21 private Class [] paramTypes; 22 private Object [] args; 23 24 25 public MethodMetaArgs(String methodName, Class [] paramTypes, Object [] args){ 26 this.methodName = methodName; 27 this.paramTypes = paramTypes; 28 this.args = args; 29 } 30 31 32 33 public String getMethodName() { 34 35 return methodName; 36 } 37 38 public Class [] getParamTypes() { 39 40 return paramTypes; 41 } 42 43 public Object [] getArgs() { 44 return args; 45 } 46 47 48 public void setMethodName(String methodName) { 49 this.methodName = methodName; 50 } 51 52 public void setParamTypes(Class [] paramTypes) { 53 this.paramTypes = paramTypes; 54 } 55 56 public void setArgs(Object [] args) { 57 this.args = args; 58 } 59 60 61 public String toString(){ 62 StringBuffer sb = new StringBuffer (); 63 sb.append(methodName); 64 int length = paramTypes.length; 65 for(int i = 0; i< length ; i++){ 66 sb.append(paramTypes[i]).append(args[i]); 67 68 } 69 return sb.toString(); 70 } 71 72 } 73 | Popular Tags |