java反射技术详解
反射的优点:大大的增强了程序的扩展性。反射的基本过程:1.取得Class目标,即是获取到指定的称号的字节码文件目标。2.实例化目标,取得类的属性、方法或结构函数。3.访问属性、调用方法、调用结构函数创建目标。(Advantages of reflection: greatly enhance the scalability of the program. The basic process of reflection: 1. Get the Class target, that is, get the bytecode file target with the specified name. 2. Instantiate the target to obtain the attribute, method or structure function of the class. 3. Access properties, call methods, and call structural functions to create targets.)
页:
[1]