The Program Is the Model: Enabling Transformations@run.time

  • Jesús Sánchez Cuadrado
  • Esther Guerra
  • Juan de Lara
Conference paper

DOI: 10.1007/978-3-642-36089-3_7

Part of the Lecture Notes in Computer Science book series (LNCS, volume 7745)
Cite this paper as:
Sánchez Cuadrado J., Guerra E., de Lara J. (2013) The Program Is the Model: Enabling Transformations@run.time. In: Czarnecki K., Hedin G. (eds) Software Language Engineering. SLE 2012. Lecture Notes in Computer Science, vol 7745. Springer, Berlin, Heidelberg

Abstract

The increasing application of Model-Driven Engineering in a wide range of domains, in addition to pure code generation, raises the need to manipulate models at runtime, as part of regular programs. Moreover, certain kinds of programming tasks can be seen as model transformation tasks, and thus we could take advantage of model transformation technology in order to facilitate them.

In this paper we report on our works to bridge the gap between regular programming and model transformation by enabling the manipulation of Java APIs as models. Our approach is based on the specification of a mapping between a Java API (e.g., Swing) and a meta-model describing it. A model transformation definition is written against the API meta-model and we have built a compiler that generates the corresponding Java bytecode according to the mapping. We present several application scenarios and discuss the mapping between object-oriented meta-modelling and the Java object system. Our proposal has been validated by a prototype implementation which is also contributed.

Keywords

Model-Driven Engineering Model Transformations Transformations at Runtime APIs Java Virtual Machine 

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Copyright information

© Springer-Verlag Berlin Heidelberg 2013

Authors and Affiliations

  • Jesús Sánchez Cuadrado
    • 1
  • Esther Guerra
    • 1
  • Juan de Lara
    • 1
  1. 1.Universidad Autónoma de MadridSpain

Personalised recommendations