MCPcopy Create free account
hub / github.com/ReadyTalk/avian / getConstructors

Method getConstructors

classpath/java/lang/Class.java:305–321  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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) {

Callers

nothing calls this directly

Calls 4

countConstructorsMethod · 0.95
linkMethod · 0.95
getNameMethod · 0.95
equalsMethod · 0.65

Tested by

no test coverage detected