Abstract
This paper presents an exercise to facilitate refactoring techniques not only on generated code, but also on generator templates by reusing existing refactoring techniques from the target language. Refactoring is particularly useful if not only the generated classes but also the template defining the result of the code generator can be adapted in a uniform treatment. We describe a simple demonstration prototype that illustrates our approach. The demonstration is based on the idea to define the templates for code generation themselves as compilable and therefore refactorable source code. However, this limits the directives embedded in the template used for code generation, as we have to embed those as comments. We explore how far this approach carries and where its limits are. © Springer-Verlag Berlin Heidelberg 2006.
Cite
CITATION STYLE
Krahn, H., & Rumpe, B. (2006). Techniques for lightweight generator refactoring. In Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics) (Vol. 4143 LNCS, pp. 437–446). Springer Verlag. https://doi.org/10.1007/11877028_19
Register to see more suggestions
Mendeley helps you to discover research relevant for your work.