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

Method getAsMethodOfPublicBase

src/jvm/clojure/lang/Reflector.java:206–228  ·  view source on GitHub ↗
(Class c, Method m)

Source from the content-addressed store, hash-verified

204
205// DEPRECATED - replaced by getAsMethodOfAccessibleBase()
206public static Method getAsMethodOfPublicBase(Class c, Method m){
207 for(Class iface : c.getInterfaces())
208 {
209 for(Method im : iface.getMethods())
210 {
211 if(isMatch(im, m))
212 {
213 return im;
214 }
215 }
216 }
217 Class sc = c.getSuperclass();
218 if(sc == null)
219 return null;
220 for(Method scm : sc.getMethods())
221 {
222 if(isMatch(scm, m))
223 {
224 return scm;
225 }
226 }
227 return getAsMethodOfPublicBase(sc, m);
228}
229
230// DEPRECATED - replaced by isAccessibleMatch()
231public static boolean isMatch(Method lhs, Method rhs) {

Callers 1

InstanceMethodExprMethod · 0.95

Calls 3

isMatchMethod · 0.95
getInterfacesMethod · 0.80
getMethodsMethod · 0.80

Tested by

no test coverage detected