()
| 303 | } |
| 304 | |
| 305 | public Constructor[] getConstructors() { |
| 306 | Constructor[] array = new Constructor[countConstructors(true)]; |
| 307 | if (vmClass.methodTable != null) { |
| 308 | Classes.link(vmClass); |
| 309 | |
| 310 | int index = 0; |
| 311 | for (int i = 0; i < vmClass.methodTable.length; ++i) { |
| 312 | if (((vmClass.methodTable[i].flags & Modifier.PUBLIC) != 0) |
| 313 | && Method.getName(vmClass.methodTable[i]).equals("<init>")) |
| 314 | { |
| 315 | array[index++] = new Constructor(new Method(vmClass.methodTable[i])); |
| 316 | } |
| 317 | } |
| 318 | } |
| 319 | |
| 320 | return array; |
| 321 | } |
| 322 | |
| 323 | public Field[] getDeclaredFields() { |
| 324 | if (vmClass.fieldTable != null) { |
nothing calls this directly
no test coverage detected