(Class ... parameterTypes)
| 241 | } |
| 242 | |
| 243 | public Constructor getConstructor(Class ... parameterTypes) |
| 244 | throws NoSuchMethodException |
| 245 | { |
| 246 | int index = Classes.findMethod(vmClass, "<init>", parameterTypes); |
| 247 | if (index < 0) { |
| 248 | throw new NoSuchMethodException(); |
| 249 | } else { |
| 250 | return new Constructor(new Method(vmClass.methodTable[index])); |
| 251 | } |
| 252 | } |
| 253 | |
| 254 | public Constructor getDeclaredConstructor(Class ... parameterTypes) |
| 255 | throws NoSuchMethodException |