计算机科学 > 程序设计语言
[提交于 1998年10月29日]
标题:Linguistic Reflection in Java
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:Reflective systems allow their own structures to be altered from within. Here we are concerned with a style of reflection, called linguistic reflection, which is the ability of a running program to generate new program fragments and to integrate these into its own execution. In particular we describe how this kind of reflection may be provided in the compiler-based, strongly typed object-oriented programming language Java. The advantages of the programming technique include attaining high levels of genericity and accommodating system evolution. These advantages are illustrated by an example taken from persistent programming which shows how linguistic reflection allows functionality (program code) to be generated on demand (Just-In-Time) from a generic specification and integrated into the evolving running program. The technique is evaluated against alternative implementation approaches with respect to efficiency, safety and ease of use.
提交历史
来自:Graham Kirby[v1] 1998年10月29日 星期四 14:30:59 UTC