Abstract
While embedding code fragments in abstract software models (e.g. Java code in UML models) is far from ideal, it remains a commonly-employed approach for achieving full model-based code generation. In this paper, we embrace this reality and present an approach for extending model-To-Text (M2T) transformation languages with support for round-Trip engineering of such code fragments. The approach consists of a new construct in M2T templates named sync regions, and a mechanism for synchronising hand-written code in sync regions with the source model of the M2T transformation. We have implemented the proposed approach on top of an existing M2T language (Epsilon Generation Language) and we have carried out experimental evaluation of the correctness and performance of our implementations. The obtained results suggest that the synchronisation algorithm scales linearly with the number of sync regions.
Original language | English |
---|---|
Title of host publication | Proceedings - ACM/IEEE 25th International Conference on Model Driven Engineering Languages and Systems, MODELS 2022 |
Subtitle of host publication | Companion Proceedings |
Publisher | Association for Computing Machinery, Inc |
Pages | 529-538 |
Number of pages | 10 |
ISBN (Electronic) | 9781450394673 |
DOIs | |
Publication status | Published - 23 Oct 2022 |
Event | 25th ACM/IEEE International Conference on Model Driven Engineering Languages and Systems, MODELS 2022 - Montreal, Canada Duration: 23 Oct 2022 → 28 Oct 2022 |
Publication series
Name | Proceedings - ACM/IEEE 25th International Conference on Model Driven Engineering Languages and Systems, MODELS 2022: Companion Proceedings |
---|
Conference
Conference | 25th ACM/IEEE International Conference on Model Driven Engineering Languages and Systems, MODELS 2022 |
---|---|
Country/Territory | Canada |
City | Montreal |
Period | 23/10/22 → 28/10/22 |
Bibliographical note
Funding Information:The work in this paper has been partially funded through the HI-CLASS InnovateUK project (contract no. 113213).
Publisher Copyright:
© 2022 Association for Computing Machinery. This is an author-produced version of the published paper. Uploaded in accordance with the publisher’s self-archiving policy. Further copying may not be permitted; contact the publisher for details.
Keywords
- model-driven engineering
- model-To-Text transformation
- round-Trip engineering