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

Method invokeInstanceMethodOfClass

src/jvm/clojure/lang/Reflector.java:101–107  ·  view source on GitHub ↗
(Object target, Class c, String methodName, Object[] args)

Source from the content-addressed store, hash-verified

99}
100
101public static Object invokeInstanceMethodOfClass(Object target, Class c, String methodName, Object[] args) {
102 List methods = getMethods(c, args.length, methodName, false).stream()
103 .map(method -> toAccessibleSuperMethod(method, target))
104 .filter(Objects::nonNull)
105 .collect(Collectors.toList());
106 return invokeMatchingMethod(methodName, methods, c, target, args);
107}
108
109public static Object invokeInstanceMethodOfClass(Object target, String className, String methodName, Object[] args) {
110 return invokeInstanceMethodOfClass(target, RT.classForName(className), methodName, args);

Callers 2

evalMethod · 0.95
invokeInstanceMethodMethod · 0.95

Calls 5

getMethodsMethod · 0.95
invokeMatchingMethodMethod · 0.95
classForNameMethod · 0.95
mapMethod · 0.80

Tested by

no test coverage detected