从类中获取设置器方法
import java.lang.reflect.Method; import java.util.ArrayList; import java.util.List;/* 来 自 时 代 Java - nowjava.com*/ public class Main{ public static void main(String[] argv) throws Exception{ Class c = String.class; System.out.println(getSetters(c)); } public static List<Method> getSetters(Class<?> c) { List<Method> ls = BeanAccess.getAllMethods(c); List<Method> ms = new ArrayList<Method>(); for (Method m : ls) { String n = m.getName(); int l = n.length(); if (l > 3 && n.startsWi