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

Method getMethod

classpath/java/lang/Class.java:228–241  ·  view source on GitHub ↗
(String name, Class ... parameterTypes)

Source from the content-addressed store, hash-verified

226 }
227
228 public Method getMethod(String name, Class ... parameterTypes)
229 throws NoSuchMethodException
230 {
231 if (name.startsWith("<")) {
232 throw new NoSuchMethodException(name);
233 }
234 for (VMClass c = vmClass; c != null; c = c.super_) {
235 int index = Classes.findMethod(c, name, parameterTypes);
236 if (index >= 0) {
237 return new Method(c.methodTable[index]);
238 }
239 }
240 throw new NoSuchMethodException(name);
241 }
242
243 public Constructor getConstructor(Class ... parameterTypes)
244 throws NoSuchMethodException

Callers 12

mainMethod · 0.95
testComplexAnnotationMethod · 0.95
getEnumConstantsMethod · 0.95
mainMethod · 0.45
mainMethod · 0.45
mainMethod · 0.45
fooMethod · 0.45
mainMethod · 0.45
testStaticMethod · 0.45
mainMethod · 0.45
mainMethod · 0.45
valueOfMethod · 0.45

Calls 2

findMethodMethod · 0.95
startsWithMethod · 0.80

Tested by 10

mainMethod · 0.76
testComplexAnnotationMethod · 0.76
mainMethod · 0.36
mainMethod · 0.36
mainMethod · 0.36
fooMethod · 0.36
mainMethod · 0.36
testStaticMethod · 0.36
mainMethod · 0.36
mainMethod · 0.36