KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > jdon > bussinessproxy > meta > MethodMetaArgs


1 /**
2  * Copyright 2003-2006 the original author or authors.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6
7        http://www.apache.org/licenses/LICENSE-2.0
8
9   * Unless required by applicable law or agreed to in writing, software
10   * distributed under the License is distributed on an "AS IS" BASIS,
11   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12   * See the License for the specific language governing permissions and
13   * limitations under the License.
14   */

15
16 package com.jdon.bussinessproxy.meta;
17
18 public class MethodMetaArgs implements java.io.Serializable JavaDoc{
19
20   private String JavaDoc methodName;
21   private Class JavaDoc[] paramTypes;
22   private Object JavaDoc[] args;
23
24
25   public MethodMetaArgs(String JavaDoc methodName, Class JavaDoc[] paramTypes, Object JavaDoc[] args){
26     this.methodName = methodName;
27     this.paramTypes = paramTypes;
28     this.args = args;
29   }
30
31
32
33   public String JavaDoc getMethodName() {
34
35     return methodName;
36   }
37
38   public Class JavaDoc[] getParamTypes() {
39
40     return paramTypes;
41   }
42
43   public Object JavaDoc[] getArgs() {
44     return args;
45   }
46
47
48   public void setMethodName(String JavaDoc methodName) {
49     this.methodName = methodName;
50   }
51
52   public void setParamTypes(Class JavaDoc[] paramTypes) {
53     this.paramTypes = paramTypes;
54   }
55
56   public void setArgs(Object JavaDoc[] args) {
57     this.args = args;
58   }
59
60
61   public String JavaDoc toString(){
62       StringBuffer JavaDoc sb = new StringBuffer JavaDoc();
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