Here you can find the source of getGetterValue(Method method, Object o)
public static Object getGetterValue(Method method, Object o)
//package com.java2s; import java.lang.reflect.Method; public class Main { public static Object getGetterValue(Method method, Object o) { try {// w ww . j a v a2 s . c o m return method.invoke(o, null); } catch (Exception e) { } return null; } }