首页 | 本学科首页   官方微博 | 高级检索  
     检索      

Java 反射技术浅谈
引用本文:刘凯立.Java 反射技术浅谈[J].科技广场,2010(3):130-134.
作者姓名:刘凯立
作者单位:中国地质大学(北京)信息工程学院,北京,100083
摘    要:反射是指程序可以访问、检测和修改它本身状态或行为的一种能力。通过反射,Java程序可以加载一个运行时才得知名称的class,得到其完整内部信息,并创建其对象,或对其属性进行设值,或调用其方法。反射是提高Java程序的灵活性和可扩展性至关重要的技术,它使得Java软件系统具有自适应能力。

关 键 词:反射  构造器  属性  方法  数组  

Introduction of Java Reflection Technology
Liu Kaili.Introduction of Java Reflection Technology[J].Science Mosaic,2010(3):130-134.
Authors:Liu Kaili
Abstract:Reflection refers to an ability that the program can access,detect and modify its own state or behavior.Through reflection,Java programs can load a class knows its name just when running it,get its full internal information,then generate its instance,or set the values of its fields,or call its methods.Reflection is a critical technology to improve the flexibility and scalability of Java programs,it makes that Java software system has a self-adaptive ability.
Keywords:Reflection  Constructor  Method  Field  Array  
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号