生成器重构技术
Techniques Enabling Generator Refactoring
摘要:
本文介绍了我们的方法,使用重构技术与代码生成。如果不仅生成的类而且生成器本身都可以以自动的方式进行调整,那么重构就特别有用。我们已经开发了一个简单的演示原型来说明这一点。该演示基于一种特殊的技术,其中用于代码生成的模板被定义为可编译的源代码。将这个模板原型输出到实际类的指令作为注释嵌入到源代码中。
英文摘要:
This paper presents our approach to use refactoring techniques together with code generation. Refactoring is particularly useful if not only the generated classes but also the generator itself can be adapted in an automatic fashion. We have developed a simple demonstration prototype to illustrate this. The demonstration is based on a special technique where the template for the code generation is defined as compilable source code. The directives to ll out this template prototype to the actual classes are embedded in the source as comments.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。