Example usage for Java org.apache.commons.lang.reflect MethodUtils fields, constructors, methods, implement or subclass
The text is from its open source code.
Method | getAccessibleMethod(Class cls, String methodName, Class parameterType) Return an accessible method (that is, one that can be invoked via reflection) with given name and a single parameter. |
Method | getAccessibleMethod(Class cls, String methodName, Class[] parameterTypes) Return an accessible method (that is, one that can be invoked via reflection) with given name and parameters. |
Method | getAccessibleMethod(Method method) Return an accessible method (that is, one that can be invoked via reflection) that implements the specified Method. |
Method | getMatchingAccessibleMethod(Class cls, String methodName, Class[] parameterTypes) Find an accessible method that matches the given name and has compatible parameters. |
Object | invokeExactMethod(Object object, String methodName, Object arg) Invoke a method whose parameter type matches exactly the object type. This is a convenient wrapper for #invokeExactMethod(Object object,String methodName,Object[] args) . |
Object | invokeExactMethod(Object object, String methodName, Object[] args) Invoke a method whose parameter types match exactly the object types. This uses reflection to invoke the method obtained from a call to |
Object | invokeExactMethod(Object object, String methodName, Object[] args, Class[] parameterTypes) Invoke a method whose parameter types match exactly the parameter types given. This uses reflection to invoke the method obtained from a call to |
Object | invokeExactStaticMethod(Class cls, String methodName, Object arg) Invoke a static method whose parameter type matches exactly the object type. This is a convenient wrapper for #invokeExactStaticMethod(Class objectClass,String methodName,Object[] args) . |
Object | invokeExactStaticMethod(Class cls, String methodName, Object[] args) Invoke a static method whose parameter types match exactly the object types. This uses reflection to invoke the method obtained from a call to #getAccessibleMethod(Class,String,Class[]) . |
Object | invokeMethod(Object object, String methodName, Object arg) Invoke a named method whose parameter type matches the object type. This method delegates the method search to #getMatchingAccessibleMethod(Class,String,Class[]) . This method supports calls to methods taking primitive parameters via passing in wrapping classes. |
Object | invokeMethod(Object object, String methodName, Object[] args) Invoke a named method whose parameter type matches the object type. This method delegates the method search to #getMatchingAccessibleMethod(Class,String,Class[]) . This method supports calls to methods taking primitive parameters via passing in wrapping classes. |
Object | invokeStaticMethod(Class cls, String methodName, Object arg) Invoke a named static method whose parameter type matches the object type. This method delegates the method search to #getMatchingAccessibleMethod(Class,String,Class[]) . This method supports calls to methods taking primitive parameters via passing in wrapping classes. |
Object | invokeStaticMethod(Class cls, String methodName, Object[] args) Invoke a named static method whose parameter type matches the object type. This method delegates the method search to #getMatchingAccessibleMethod(Class,String,Class[]) . This method supports calls to methods taking primitive parameters via passing in wrapping classes. |