http://blog.csdn.net/jackiehff/article/details/8509075
Object obj = Class.forName("xxxx.xxx.xx.XXX");
//获取函数
Method method = obj.getClass().getMethod("getSchool");
//获取静态field
Field field = obj.getClass().getField("countSize");
//获取函数 field的值
String countSize = field.get(null).toString();
//获取函数的返回值
Object fieldObj = method.invoke(obj, field.get(null));
//或者一般无参数的函数,获取返回值
String name = method.invoke(fieldObj).toString();