List of utility methods to do Method Invoke
Object | invokeMethod(Object object, String methodName, Object[] params, Class... types) invoke Method Object out = null; Class c = object instanceof Class ? (Class) object : object .getClass(); if (types != null) { Method method = c.getMethod(methodName, types); out = method.invoke(object, params); } else { Method method = c.getMethod(methodName); ... |