(Class... c)
| 104 | |
| 105 | |
| 106 | public static String paramsTypesToString(Class... c) { |
| 107 | if (c == null) { |
| 108 | return null; |
| 109 | } |
| 110 | if (c.length == 0) { |
| 111 | return "()"; |
| 112 | } |
| 113 | StringBuilder sb = new StringBuilder("("); |
| 114 | for (int i = 0; i < c.length; i++) { |
| 115 | sb.append(c[i] == null ? "[null]" : c[i].getName()); |
| 116 | if (i != c.length - 1) { |
| 117 | sb.append(","); |
| 118 | } |
| 119 | } |
| 120 | sb.append(")"); |
| 121 | return sb.toString(); |
| 122 | } |
| 123 | |
| 124 | public static Object invokeStaticAny(Class<?> clazz, Object... argsTypesAndReturnType) |
| 125 | throws NoSuchMethodException, InvocationTargetException, IllegalAccessException, IllegalArgumentException { |
no test coverage detected