01: /*******************************************************************************
02: * Portions created by Sebastian Thomschke are copyright (c) 2005-2007 Sebastian
03: * Thomschke.
04: *
05: * All Rights Reserved. This program and the accompanying materials
06: * are made available under the terms of the Eclipse Public License v1.0
07: * which accompanies this distribution, and is available at
08: * http://www.eclipse.org/legal/epl-v10.html
09: *
10: * Contributors:
11: * Sebastian Thomschke - initial implementation.
12: *******************************************************************************/package net.sf.oval.guard;
13:
14: import java.lang.reflect.Constructor;
15: import java.lang.reflect.Method;
16:
17: import net.sf.oval.exception.ReflectionException;
18:
19: /**
20: * @author Sebastian Thomschke
21: */
22: public interface ParameterNameResolver {
23: /**
24: * returns an empty String array if no parameters are declared
25: */
26: String[] getParameterNames(Method method)
27: throws ReflectionException;
28:
29: /**
30: * returns an empty String array if no parameters are declared
31: */
32: String[] getParameterNames(Constructor constructor)
33: throws ReflectionException;
34: }
|