(Object target, Class c, String methodName, Object[] args)
| 99 | } |
| 100 | |
| 101 | public 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 | |
| 109 | public static Object invokeInstanceMethodOfClass(Object target, String className, String methodName, Object[] args) { |
| 110 | return invokeInstanceMethodOfClass(target, RT.classForName(className), methodName, args); |
no test coverage detected