Here you can find the source of getMethod(Object object, String methodName, Class... arguments)
private static Method getMethod(Object object, String methodName, Class... arguments) throws Exception
//package com.java2s; //License from project: Open Source License import java.lang.reflect.Method; public class Main { private static Method getMethod(Object object, String methodName, Class... arguments) throws Exception { return object.getClass().getDeclaredMethod(methodName, arguments); }/*from w w w . ja v a 2 s . com*/ }