(Class ... parameterTypes)
| 252 | } |
| 253 | |
| 254 | public Constructor getDeclaredConstructor(Class ... parameterTypes) |
| 255 | throws NoSuchMethodException |
| 256 | { |
| 257 | Constructor c = null; |
| 258 | Constructor[] constructors = getDeclaredConstructors(); |
| 259 | |
| 260 | for (int i = 0; i < constructors.length; ++i) { |
| 261 | if (Classes.match(parameterTypes, constructors[i].getParameterTypes())) { |
| 262 | c = constructors[i]; |
| 263 | } |
| 264 | } |
| 265 | |
| 266 | if (c == null) { |
| 267 | throw new NoSuchMethodException(); |
| 268 | } else { |
| 269 | return c; |
| 270 | } |
| 271 | } |
| 272 | |
| 273 | private int countConstructors(boolean publicOnly) { |
| 274 | int count = 0; |
nothing calls this directly
no test coverage detected