public class MethodResolver extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
extractArgs(String methodName)
extract the part within ().
|
static String[] |
extractParameters(String methodName)
extract array of strings encoding in the given method string.
|
static Method |
findMethod(Class<?> c,
String methodName)
find a method per name in the given class.
|
static Method |
findMethodWithArgs(Class<?> c,
String methodName,
Class<?>... parameters) |
public static Method findMethod(Class<?> c, String methodName)
c - the class to look formethodName - the methodNamepublic static Method findMethodWithArgs(Class<?> c, String methodName, Class<?>... parameters)
public static String[] extractParameters(String methodName)
methodName - methodCopyright © 2013. All Rights Reserved.