Original scientific paper
https://doi.org/10.2498/cit.1001739
Introducing Polymorphic Features into a Scripting Model of Generator
Danijel Radošević
orcid.org/0000-0001-6022-2973
; Faculty of Organization and Informatics, University of Zagreb, Varaždin, Croatia
Ivan Magdalenić
orcid.org/0000-0002-6634-571X
; Faculty of Organization and Informatics, University of Zagreb, Varaždin, Croatia
Abstract
Generative programming is a discipline of Automatic programming which strives to make application and the generator development process flexible and generated program code optimized. Because of the lack of appropriate graphic and aspect based generator models, we developed the Scripting model of generator, as a static generator model based on higher level scripts. This paper gives a formal definition of the Scripting model and describes how basic object model properties, like encapsulation, inheritance, and now, polymorphism are achieved. This offers some advantages in generative application development, such as more precise application specification, better generator reusability, and simpler generator model and its easier implementation. The introduced polymorphic features are presented in an illustrative example of a Java application generator.
Keywords
generative programming; scripting model; polymorphism
Hrčak ID:
67548
URI
Publication date:
30.3.2011.
Visits: 1.251 *