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

Method getFn

src/jvm/clojure/lang/MultiFn.java:153–159  ·  view source on GitHub ↗
(Object dispatchVal)

Source from the content-addressed store, hash-verified

151}
152
153private IFn getFn(Object dispatchVal) {
154 IFn targetFn = getMethod(dispatchVal);
155 if(targetFn == null)
156 throw new IllegalArgumentException(String.format("No method in multimethod '%s' for dispatch value: %s",
157 name, dispatchVal));
158 return targetFn;
159}
160
161private IFn findAndCacheBestMethod(Object dispatchVal) {
162 rw.readLock().lock();

Callers 1

invokeMethod · 0.95

Calls 2

getMethodMethod · 0.95
formatMethod · 0.80

Tested by

no test coverage detected