Techniques for lightweight generator refactoring

  • Authors:
  • Holger Krahn;Bernhard Rumpe

  • Affiliations:
  • Institute for Software Systems Engineering, Technische Universität Braunschweig, Braunschweig, Germany;Institute for Software Systems Engineering, Technische Universität Braunschweig, Braunschweig, Germany

  • Venue:
  • GTTSE'05 Proceedings of the 2005 international conference on Generative and Transformational Techniques in Software Engineering
  • Year:
  • 2005

Quantified Score

Hi-index 0.00

Visualization

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.