[反射初探]根据反射获取类中参数类型及参数名和参数值
public String getMyDeclaredMethods(T t) {
Class c = t.getClass();
Method m[] = c.getDeclaredMethods();
String text = "";
String n = c.getCanonicalName();
for (int i = 0; i < m.length; i++) {
原创
2014-05-26 10:45:45 ·
950 阅读 ·
0 评论