(Object target, String name)
| 471 | } |
| 472 | |
| 473 | public 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 | |
| 491 | public static Object invokeInstanceMember(String name, Object target, Object arg1) { |
| 492 | //check for field first |
nothing calls this directly
no test coverage detected