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

Method getDeclaredConstructors

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

Source from the content-addressed store, hash-verified

287 }
288
289 public Constructor[] getDeclaredConstructors() {
290 Constructor[] array = new Constructor[countConstructors(false)];
291 if (vmClass.methodTable != null) {
292 Classes.link(vmClass);
293
294 int index = 0;
295 for (int i = 0; i < vmClass.methodTable.length; ++i) {
296 if (Method.getName(vmClass.methodTable[i]).equals("<init>")) {
297 array[index++] = new Constructor(new Method(vmClass.methodTable[i]));
298 }
299 }
300 }
301
302 return array;
303 }
304
305 public Constructor[] getConstructors() {
306 Constructor[] array = new Constructor[countConstructors(true)];

Callers 1

Calls 4

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

Tested by

no test coverage detected