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
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.