Research on Techniques of Code Generating,mapping and Reversing Serving for Model-Driven Development

温玮,方伟,何友,黄晓冬
DOI: https://doi.org/10.3778/j.issn.1002-8331.2009.28.002
2009-01-01
Computer Engineering and Applications Journal
Abstract:The research of the techniques serving for code generating,mapping and reversing is explained,and the corresponding applications into the development of the Domain-Oriented Modeling Tools which support the Model-Driven Development(MDD) are introduced.Code generating is a process of taking evolvements from the code template based on meta-data,key mechanisms for this evolvement include macro-substitution,conditionally code-exporting and circularly code-exporting.Code mapping needs to locate the code segments which mapping the corresponding model information separately,and replace them with the production of the code-generator respectively.Code reversing is realized by parsing the code segments mentioned before and extracting the model information from the segments.Grammars used to design the code templates and conformed by code-parsing are analyzed. The software implementation is also put forward.The applications in diversified environments testify the solution has good adaptability and expansibility.
What problem does this paper attempt to address?