public final class MethodUtils
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private static org.slf4j.Logger |
LOG
The logger.
|
| Modifier | Constructor and Description |
|---|---|
private |
MethodUtils()
Private constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static java.lang.reflect.Method |
getAssignmentCompatibleMethod(java.lang.Class<?> clazz,
java.lang.String candidateMethodName,
java.lang.Class<?>[] candidateParameterTypes)
A replacement for
Class.getMethod(java.lang.String, java.lang.Class<?>...) with extended capability. |
public static java.lang.reflect.Method getAssignmentCompatibleMethod(java.lang.Class<?> clazz,
java.lang.String candidateMethodName,
java.lang.Class<?>[] candidateParameterTypes)
throws java.lang.NoSuchMethodException
Class.getMethod(java.lang.String, java.lang.Class<?>...) with extended capability.
This method returns parameter-list assignment-compatible method as well as exact-signature matching method.
clazz - The class which will be queried for the method.candidateMethodName - Name of the method been looked for.candidateParameterTypes - Types of the parameters in the signature of the method being loooked for.java.lang.NoSuchMethodException - when the method cannot be found