(String className, String methodName, Class[] paramTypes, Object... parameters)
| 7 | public class Utils { |
| 8 | |
| 9 | public static Object invokeStaticMethod(String className, String methodName, Class[] paramTypes, Object... parameters) { |
| 10 | try { |
| 11 | Class clazz = Class.forName(className); |
| 12 | return invokeMethod(null, clazz, methodName, paramTypes, parameters); |
| 13 | } catch (Exception e) { |
| 14 | return null; |
| 15 | } |
| 16 | } |
| 17 | |
| 18 | public static String invokeStringMethod(Object object, String methodName, Class[] paramTypes, Object... parameters) { |
| 19 | Object ret = invokeMethod(object, methodName, paramTypes, parameters); |
no test coverage detected