Here you can find the source of getMethodValue(Object base, Method method)
private static Object getMethodValue(Object base, Method method)
//package com.java2s; //License from project: Open Source License import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; public class Main { private static Object getMethodValue(Object base, Method method) { try {/* w w w . j a v a2s. c o m*/ return method.invoke(base); } catch (IllegalArgumentException | IllegalAccessException | InvocationTargetException ex) { throw new IllegalArgumentException(ex); } } }