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

Method getDeclaredMethod

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

Source from the content-addressed store, hash-verified

212 }
213
214 public Method getDeclaredMethod(String name, Class ... parameterTypes)
215 throws NoSuchMethodException
216 {
217 if (name.startsWith("<")) {
218 throw new NoSuchMethodException(name);
219 }
220 int index = Classes.findMethod(vmClass, name, parameterTypes);
221 if (index < 0) {
222 throw new NoSuchMethodException(name);
223 } else {
224 return new Method(vmClass.methodTable[index]);
225 }
226 }
227
228 public Method getMethod(String name, Class ... parameterTypes)
229 throws NoSuchMethodException

Callers 2

mainMethod · 0.95
getReadOrWriteMethodMethod · 0.80

Calls 2

findMethodMethod · 0.95
startsWithMethod · 0.80

Tested by 1

mainMethod · 0.76