org.apache.directory.shared.util
Class MethodUtils
java.lang.Object
org.apache.directory.shared.util.MethodUtils
public final class MethodUtils
- extends Object
- Author:
- Apache Directory Project
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getAssignmentCompatibleMethod
public static Method getAssignmentCompatibleMethod(Class<?> clazz,
String candidateMethodName,
Class<?>[] candidateParameterTypes)
throws NoSuchMethodException
- A replacement for
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.
- Parameters:
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.
- Returns:
- The Method found.
- Throws:
NoSuchMethodException - when the method cannot be found
Copyright © 2003-2012 The Apache Software Foundation. All Rights Reserved.