Code Generation 2008 Programme Information
Session TitleDirect Code Generation with Built-in Flexibility

Session Type Experience Report

Duration75 minutes

Session Description Direct code generation is often implemented using template languages. Template languages require a direct translation of a model in one language to text (code) in another language. This session explains that a true MDA approach offers the possibility to create a much more flexible code generator. In this approach two phases are recognised. The first is a model to model transformation, that is a translation from a model in one language to a model in another language. In the second phase the produced model is transformed into text (code).

In effect, this means that the code generator is modularised. Furthermore, the model-to-model transformation itself can also be divided into several parts. Parts that can be executed sequentially, conditionally or even parallel. This modularisation of the code generator can to certain extent be exposed to the user of the code generator, who thus has the opportunity to decide which parts of the generation process to include in a certain generation run and which not to include.

This presentation is based on experiences with the Octopus UML to Java code generator.

Speaker Anneke Kleppe is a principle consultant at Capgemini Netherlands. She is the author of “Software Language Engineering, Creating Domain Specific Languages using Metamodels” (to be published Spring 2008, Addison-Wesley), “MDA Explained” (2003, Addison-Wesley), and “The Object Constraint Language (2003, Addison-Wesley).

Intended Audience Intermediate / Expert

Links Read Anneke's interview on the Code Generation Network.