Load-Time Structural Reflection in Java

Load-Time Structural Reflection in Java
复制标题

DOI:
10.1007/3-540-45102-1_16
复制
发表时间:
2000-06
期刊:
--
影响因子:
--
通讯作者:
S. Chiba
S. Chiba
中科院分区:
其他
文献类型:
--
作者:
S. Chiba

文献摘要

被引文献

相似文献

Java的标准反射API提供了内省程序但不改变程序行为的能力。本文提出了一个扩展反射API来解决这个限制。与其他支持行为反射的扩展不同,我们的扩展名为Javassistenables Java中的结构反射。为了使用标准Java虚拟机(JVM)并避免性能问题,Javassist只允许在类加载到JVM之前进行结构反射。然而,Javassist仍然涵盖了各种应用程序,包括模拟行为反射的语言扩展。本文还介绍了Javassist的设计原则,指出Javassist与相关工作的区别。
The standard reflection API of Java provides the ability to introspect a program but not to alter program behavior. This paper presents an extension to the reflection API for addressing this limitation. Unlike other extensions enabling behavioral reflection, our extension calledJavassistenables structural reflection in Java. For using a standard Java virtual machine (JVM) and avoiding a performance problem, Javassist allows structural reflection only before a class is loaded into the JVM. However, Javassist still covers various applications including a language extension emulating behavioral reflection. This paper also presents the design principles of Javassist, which distinguish Javassist from related work.