Techniques Enabling Generator Refactoring
This work addresses a specific issue in code generation for developers, but it is incremental as it builds on existing refactoring and generation methods.
The paper tackles the problem of automatically adapting both generated classes and the generator itself by integrating refactoring techniques with code generation, resulting in a demonstration prototype that uses compilable source code templates with embedded directives in comments.
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.