Example usage for Java org.apache.commons.beanutils MethodUtils fields, constructors, methods, implement or subclass
The text is from its open source code.
Method | getAccessibleMethod(Class clazz, 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 clazz, 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 clazz, String methodName, Class[] parameterTypes) Find an accessible method that matches the given name and has compatible parameters. |
Class | getPrimitiveType(Class wrapperType) Gets the class for the primitive type corresponding to the primitive wrapper class given. |
Class | getPrimitiveWrapper(Class primitiveType) Gets the wrapper object class for the given primitive type class. |
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 #getAccessibleMethod . |
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 #getAccessibleMethod . |
Object | invokeMethod(Object object, String methodName, Object arg) Invoke a named method whose parameter type matches the object type. The behaviour of this method is less deterministic than #invokeExactMethod . |
Object | invokeMethod(Object object, String methodName, Object[] args) Invoke a named method whose parameter type matches the object type. The behaviour of this method is less deterministic than #invokeExactMethod(Object object,String methodName,Object[] args) . |
Object | invokeMethod(Object object, String methodName, Object[] args, Class[] parameterTypes) Invoke a named method whose parameter type matches the object type. The behaviour of this method is less deterministic than #invokeExactMethod(Object object,String methodName,Object[] args,Class[] parameterTypes) . |
boolean | isAssignmentCompatible(Class parameterType, Class parameterization) Determine whether a type can be used as a parameter in a method invocation. |
Class | toNonPrimitiveClass(Class clazz) Find a non primitive representation for given primitive class. |