Here you can find the source of getMethod(String className, String functionName, Class[] paramTypes)
public static Method getMethod(String className, String functionName, Class[] paramTypes) throws ClassNotFoundException, SecurityException, NoSuchMethodException
//package com.java2s; //License from project: Apache License import java.lang.reflect.Method; public class Main { public static Method getMethod(String className, String functionName, Class[] paramTypes) throws ClassNotFoundException, SecurityException, NoSuchMethodException { Method method = null;/*w w w.j av a 2 s. c o m*/ Class actionClassObj; actionClassObj = Class.forName(className); method = actionClassObj.getMethod(functionName, paramTypes); return method; } }