snaker-core/src/main/java/org/snaker/engine/helper/ReflectHelper.java
public static Method findMethod(Class<?> clazz, String methodName) {
		Method[] candidates = clazz.getDeclaredMethods();
		for (int i = 0; i < candidates.length; i++) {
			Method candidate = candidates[i];
			if (candidate.getName().equals(methodName)) {
				return candidate;
			}
		}
		if (clazz.getSuperclass() != null) {
			return findMethod(clazz.getSuperclass(), methodName);
		}
		return null;
	}
public static Method findMethod(Class<?> clazz, String methodName) {
		Method[] candidates = clazz.getDeclaredMethods();
		for (int i = 0; i < candidates.length; i++) {
			Method candidate = candidates[i];
			if (candidate.getName().equals(methodName)) {
				return candidate;
			}
		}
		if (clazz.getSuperclass() != null) {
			return findMethod(clazz.getSuperclass(), methodName);
		}
		return null;
	}
根据class类型、methodName方法名称，返回Method对象。
注意：这里不检查参数类型，所以自定义的java类应该避免使用重载方法
@param clazz
@param methodName
@return