1 /*
2 * (C) 2002 David Carr david@carr.name
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 */
18
19 package net.sourceforge.mflow.reflect;
20
21 /***
22 * A parameter-argument pair, for use in finding constructors and methods
23 *
24 * @author carrd
25 */
26 public class ParamArgPair {
27 private Class[] paramTypes;
28 private Object[] args;
29
30 /***
31 * Constructs a default parameter-argument pair, with no parameters
32 * arguments.
33 */
34 public ParamArgPair() {
35 this(new Class[0], new Object[0]);
36 }
37
38 /***
39 * Constructs a parameter-argument pair.
40 *
41 * @param paramTypes the parameter types
42 * @param args the arguments for the parameters
43 */
44 public ParamArgPair(Class[] paramTypes, Object[] args) {
45 this.paramTypes = paramTypes;
46 this.args = args;
47 }
48
49 /***
50 * @return the parameter types for this parameter-argument pair
51 */
52 public Class[] getParameterTypes() {
53 return this.paramTypes;
54 }
55
56 /***
57 * @return the arguments for this parameter-argument pair
58 */
59 public Object[] getArguments() {
60 return this.args;
61 }
62 }
This page was automatically generated by Maven