Here you can find the source of getMethod(Class cl, String methodName, String obfName, Class... parameterTypes)
public static Method getMethod(Class cl, String methodName, String obfName, Class... parameterTypes)
//package com.java2s; //License from project: Open Source License import java.lang.reflect.Method; public class Main { public static Method getMethod(Class cl, String methodName, String obfName, Class... parameterTypes) { Method m = null;/*from w ww. j av a2s . c o m*/ try { try { m = cl.getDeclaredMethod(methodName, parameterTypes); } catch (Exception e) { } if (m == null) m = cl.getDeclaredMethod(obfName, parameterTypes); m.setAccessible(true); return m; } catch (Exception e) { return null; } } }