(Class<?> c, String name, Class<?>... pars)
| 149 | } |
| 150 | |
| 151 | public static Method getMethod(Class<?> c, String name, Class<?>... pars) throws Throwable { |
| 152 | String iv = ""; |
| 153 | String mx = ""; |
| 154 | |
| 155 | for (Class<?> i : pars) { |
| 156 | mx += "," + i.getCanonicalName(); |
| 157 | } |
| 158 | |
| 159 | mx = mx.length() >= 1 ? mx.substring(1) : mx; |
| 160 | iv = id(c, null) + "." + name + "(" + mx + ")"; |
| 161 | |
| 162 | if (!h(iv)) { |
| 163 | Method f = c.getMethod(name, pars); |
| 164 | f.setAccessible(true); |
| 165 | p(iv, f); |
| 166 | } |
| 167 | |
| 168 | return (Method) g(iv); |
| 169 | } |
| 170 | |
| 171 | @SuppressWarnings("unchecked") |
| 172 | public static <T> T construct(Class<?> c, Object... parameters) { |
no test coverage detected