Java org.apache.commons.lang.reflect MethodUtils fields, constructors, methods, implement or subclass

Example usage for Java org.apache.commons.lang.reflect MethodUtils fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.commons.lang.reflect MethodUtils.

The text is from its open source code.

Method

MethodgetAccessibleMethod(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.

MethodgetAccessibleMethod(Class cls, String methodName, Class[] parameterTypes)

Return an accessible method (that is, one that can be invoked via reflection) with given name and parameters.

MethodgetAccessibleMethod(Method method)

Return an accessible method (that is, one that can be invoked via reflection) that implements the specified Method.

MethodgetMatchingAccessibleMethod(Class cls, String methodName, Class[] parameterTypes)

Find an accessible method that matches the given name and has compatible parameters.

ObjectinvokeExactMethod(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) .

ObjectinvokeExactMethod(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().

ObjectinvokeExactMethod(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().

ObjectinvokeExactStaticMethod(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) .

ObjectinvokeExactStaticMethod(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[]) .

ObjectinvokeMethod(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.

ObjectinvokeMethod(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.

ObjectinvokeStaticMethod(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.

ObjectinvokeStaticMethod(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.