MCPcopy Index your code
hub / github.com/clojure/clojure / signatureMatches

Method signatureMatches

src/jvm/clojure/lang/Compiler.java:1381–1391  ·  view source on GitHub ↗
(List<Class> sig, Executable method)

Source from the content-addressed store, hash-verified

1379}
1380
1381private static boolean signatureMatches(List<Class> sig, Executable method)
1382{
1383 Class[] methodSig = method.getParameterTypes();
1384 if(methodSig.length != sig.size()) return false;
1385
1386 for (int i = 0; i < methodSig.length; i++)
1387 if (sig.get(i) != null && !sig.get(i).equals(methodSig[i]))
1388 return false;
1389
1390 return true;
1391};
1392
1393static boolean isStaticMethod(Executable method) {
1394 return method instanceof java.lang.reflect.Method && Modifier.isStatic(method.getModifiers());

Callers 1

resolveHintedMethodMethod · 0.80

Calls 3

getMethod · 0.65
sizeMethod · 0.45
equalsMethod · 0.45

Tested by

no test coverage detected