| 226 | } |
| 227 | |
| 228 | public Method getMethod(String name, Class ... parameterTypes) |
| 229 | throws NoSuchMethodException |
| 230 | { |
| 231 | if (name.startsWith("<")) { |
| 232 | throw new NoSuchMethodException(name); |
| 233 | } |
| 234 | for (VMClass c = vmClass; c != null; c = c.super_) { |
| 235 | int index = Classes.findMethod(c, name, parameterTypes); |
| 236 | if (index >= 0) { |
| 237 | return new Method(c.methodTable[index]); |
| 238 | } |
| 239 | } |
| 240 | throw new NoSuchMethodException(name); |
| 241 | } |
| 242 | |
| 243 | public Constructor getConstructor(Class ... parameterTypes) |
| 244 | throws NoSuchMethodException |