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

Method aritySet

src/jvm/clojure/lang/Compiler.java:1275–1283  ·  view source on GitHub ↗
(Class c, String methodName, MethodKind kind)

Source from the content-addressed store, hash-verified

1273 // Given a class, method name, and method kind, returns a sorted set of
1274 // arity counts pertaining to the method's overloads
1275 private static Set aritySet(Class c, String methodName, MethodKind kind) {
1276 Set res = new java.util.TreeSet<>();
1277 List<Executable> methods = methodsWithName(c, methodName, kind);
1278
1279 for(Executable exec : methods)
1280 res.add(exec.getParameterCount());
1281
1282 return res;
1283 }
1284
1285 public static List<Executable> methodOverloads(Class c, String methodName, MethodKind kind) {
1286 final Executable[] methods = c.getMethods();

Callers 1

buildThunkMethod · 0.95

Calls 2

methodsWithNameMethod · 0.95
addMethod · 0.65

Tested by

no test coverage detected