Class MethodFinder
java.lang.Object
net.sourceforge.jbizmo.commons.reflect.MethodFinder
Utility class for finding a method by its name and its parameters
Copyright 2010 (C) by Martin Ganserer
- Version:
- 1.0.0
- Author:
- Martin Ganserer
-
Method Summary
Modifier and TypeMethodDescriptionstatic MethodfindMethod(Class<?> cl, String methodName, Object[] params) Find the method
-
Method Details
-
findMethod
public static Method findMethod(Class<?> cl, String methodName, Object[] params) throws NoSuchMethodException Find the method- Parameters:
cl- the classmethodName- the name of the methodparams- the parameters- Returns:
- the method
- Throws:
NoSuchMethodException- if the method could not be found
-