/** * Call a method on the object with one argument. * * @param methodName the name of the method to call * @param argType the type of argument. * @param arg the value of the argument. * @return the object returned by the method */ public Object invoke(String methodName, Class argType, Object arg) { return ReflectUtil.invoke(obj, methodName, argType, arg); }
/** * Call a method on the object with one argument. * * @param methodName the name of the method to call * @param argType1 the type of the first argument. * @param arg1 the value of the first argument. * @param argType2 the type of the second argument. * @param arg2 the value of the second argument. * @return the object returned by the method */ public Object invoke( String methodName, Class argType1, Object arg1, Class argType2, Object arg2) { return ReflectUtil.invoke(obj, methodName, argType1, arg1, argType2, arg2); }
/** * Call a method on the object with no parameters. * * @param methodName the name of the method to call * @return the object returned by the method */ public Object invoke(String methodName) { return ReflectUtil.invoke(obj, methodName); }