@Override public String toString() { return format("%s[format=%s, arguments=%s]", getClass().getSimpleName(), quote(format), format(arguments)); }
private ReflectionError cannotInvokeMethod(Throwable cause, Object... args) { String message = concat("Unable to invoke method ", quote(method.getName()), " with arguments ", format(args)); throw new ReflectionError(message, cause); }
private static Method lookupInClassHierarchy(String methodName, Class<?> targetType, Class<?>[] parameterTypes) { Method method = null; Class<?> type = targetType; while (type != null) { method = method(methodName, type, parameterTypes); if (method != null) break; type = type.getSuperclass(); } if (method == null) throw new ReflectionError(concat("Unable to find method ", quote(methodName), " in ", targetType.getName(), " with parameter type(s) ", format(parameterTypes))); return method; }
return Arrays.format(o);