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

Method getConstructor

classpath/java/lang/Class.java:243–252  ·  view source on GitHub ↗
(Class ... parameterTypes)

Source from the content-addressed store, hash-verified

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

Callers 5

newInstanceMethod · 0.95
findMethod · 0.95
mainMethod · 0.80
mainMethod · 0.80
newProxyInstanceMethod · 0.80

Calls 1

findMethodMethod · 0.95

Tested by 2

mainMethod · 0.64
mainMethod · 0.64