Here you can find the source of getMethodFromClass(String className, String methodName, Class>... parameterTypes)
public static Method getMethodFromClass(String className, String methodName, Class<?>... parameterTypes) throws NoSuchMethodException, SecurityException, ClassNotFoundException
//package com.java2s; //License from project: Open Source License import java.lang.reflect.Method; public class Main { public static Method getMethodFromClass(String className, String methodName, Class<?>... parameterTypes) throws NoSuchMethodException, SecurityException, ClassNotFoundException { Class<?> c = Class.forName(className); return c.getMethod(methodName, parameterTypes); }//w ww . j a v a 2 s .c o m }