(String name, Class ... parameterTypes)
| 212 | } |
| 213 | |
| 214 | public Method getDeclaredMethod(String name, Class ... parameterTypes) |
| 215 | throws NoSuchMethodException |
| 216 | { |
| 217 | if (name.startsWith("<")) { |
| 218 | throw new NoSuchMethodException(name); |
| 219 | } |
| 220 | int index = Classes.findMethod(vmClass, name, parameterTypes); |
| 221 | if (index < 0) { |
| 222 | throw new NoSuchMethodException(name); |
| 223 | } else { |
| 224 | return new Method(vmClass.methodTable[index]); |
| 225 | } |
| 226 | } |
| 227 | |
| 228 | public Method getMethod(String name, Class ... parameterTypes) |
| 229 | throws NoSuchMethodException |