摘要: 如何获得class?--有三种方法:类名.Class,对象.getClass(),Class.forName("完整类名(eg:java.lang.String)")。reflect中的类有Field,Method,Constructor,使用时很相似;如何使用反射设置一个类中各属性的值?BeanUtils类:package com.arj.reflection;import java.beans.BeanInfo;import java.beans.IntrospectionException;import java.beans.Introspector;import j 阅读全文
posted @ 2013-07-17 13:25 PS_popcorn 阅读(552) 评论(0) 推荐(0) 编辑