Here you can find the source of getMethod(Class> beanClass, String methodName, Class>[] types)
Parameter | Description |
---|---|
beanClass | a parameter |
methodName | a parameter |
parameters | a parameter |
Parameter | Description |
---|---|
NoSuchMethodException | an exception |
SecurityException | an exception |
private static Method getMethod(Class<?> beanClass, String methodName, Class<?>[] types) throws SecurityException, NoSuchMethodException
//package com.java2s; import java.lang.reflect.Method; public class Main { /**/*from w w w . j a va 2s. c o m*/ * * @param beanClass * @param methodName * @param parameters * @return method * @throws NoSuchMethodException * @throws SecurityException */ private static Method getMethod(Class<?> beanClass, String methodName, Class<?>[] types) throws SecurityException, NoSuchMethodException { return beanClass.getDeclaredMethod(methodName, types); } }