摘要: 引用:http://blog.csdn.net/ahwr24/article/details/7255379try {//得到类对象Class c = Class.forName("完整类名");Object yourObj = c.newInstance();//得到方法Method methlist[] = cls.getDeclaredMethods();for (int i = 0; i < methlist.length; i++) {Method m = methlist[i];}//获取到方法对象,假设方法的参数是一个int,method名为setAge 阅读全文
posted @ 2013-07-30 19:44 镇水古月 阅读(154) 评论(0) 推荐(0) 编辑