Class MethodUtils
java.lang.Object
org.apache.directory.api.util.MethodUtils
A class used to manage some class reflection methods
- Author:
- Apache Directory Project
-
Method Summary
Modifier and TypeMethodDescriptionstatic MethodgetAssignmentCompatibleMethod(Class<?> clazz, String candidateMethodName, Class<?>[] candidateParameterTypes) A replacement forClass.getMethod(String, Class...)with extended capability.
-
Method Details
-
getAssignmentCompatibleMethod
public static Method getAssignmentCompatibleMethod(Class<?> clazz, String candidateMethodName, Class<?>[] candidateParameterTypes) throws NoSuchMethodException A replacement forClass.getMethod(String, 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
-