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

Method invokeInstanceMember

src/jvm/clojure/lang/Reflector.java:473–489  ·  view source on GitHub ↗
(Object target, String name)

Source from the content-addressed store, hash-verified

471}
472
473public static Object invokeInstanceMember(Object target, String name) {
474 //check for field first
475 Class c = target.getClass();
476 Field f = getField(c, name, false);
477 if(f != null) //field get
478 {
479 try
480 {
481 return prepRet(f.getType(), f.get(target));
482 }
483 catch(IllegalAccessException e)
484 {
485 throw Util.sneakyThrow(e);
486 }
487 }
488 return invokeInstanceMethod(target, name, RT.EMPTY_ARRAY);
489}
490
491public static Object invokeInstanceMember(String name, Object target, Object arg1) {
492 //check for field first

Callers

nothing calls this directly

Calls 8

getFieldMethod · 0.95
prepRetMethod · 0.95
sneakyThrowMethod · 0.95
invokeInstanceMethodMethod · 0.95
boxArgMethod · 0.95
getMethod · 0.65
getTypeMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected