Template-based automatic code generation technology

Author
GuanTaiYang
Advisor
ZhuDaYong
School
University of Electronic Science and Technology
Major
Software Engineering
Classification
TP311.11 Programming method
Degree
Master's thesis
Year
2007
Downloads
396
Citations
8

Request the full text

Abstract

Code generation are about writing programs that write programs. In details, the process of code generation includes reading the text or model from the engineering, following specific rules, generating code that can be understood by computer.Nowadays, most programmers still handwrite their code. The traditional development pattern usually means low efficiency and long development cycles and also include a lot of repetitive work, which, on the contrary, lead to project delay, overspend, worse performance, even abortion. Programmers are forced to think about it and find new and effectively development pattern. Code generation come into being in this way.As a new software development pattern, code generation is still on its way to be mature, though code generation techniques has paid an important role in many project developments; still more need to be done for code generation techniques. In many aspects, code generation techniques make a better project and enhance efficiency in the development of software product.We analyze the state of the code generation techniques and existed solutions in this paper, introduce correlative techniques, such as template, metadata, reflection, XML, UML and so on. We raise a design model of code generation techniques. We implement this model by combining XML definition documents, template documents and template engine, plus correlative transform mechanism.According to the requirement, we construct the XML definitation files in diffierent way, and design the template files accordingly. The system core is the design and implementation of template engine, which includes the objectpool and contextobject. And then, the automatic generation module. Finally we use plugin technique to add the generated code into the specific system.In succession, we show the performance process and implement the code generation model in details via two test cases. According to the test result and speed analysis, we get the expected result, which prove the feasible of the solution. Finally, we point out the improving direction of this system.

Table of contents

Abstract 4-5 ABSTRACT 5-9 first chapter 9-14 1.1 automatic code generation technology background 1.2 automatic code generation technology development status 9-11 1.3 automatic code generation technology applications 11-12 1.4 of this article, the content and results 12 1.5 organizational structure of the paper 12-14 Chapter II automatic code generation technology 14-37 2.1 automatic code generation technology overview 14-16 2.2 automatic code generation implementation 16-23 2.3 The existing solutions 23-27 2.4 automatic code generation system related to technology 27-36 2.5 Summary 36-37 the third chapter of the development model analysis 37-41 3.1 design requirements 37 3.2 program to generate code 37-38 3.3 an XSLT to generate code 38-39 3.4 template to generate code 39 <br / > 3.5 templates and XSLT 39-40 3.6 Summary 40-41 Chapter automatic code generation system based on a template design 41-67 < br /> 4.1 the overall system design 41-43 4.2 XML data file design 43-44 4.3 template file design 44-47 4.4 template engine design 47-57 4.5 auto-generated module is designed to achieve 57-63 4.6 plug-in module design and implementation 63-66 4.7 Summary 66-67 Chapter automatic code generation, testing and analysis 67-75 5.1 Test Principle and analysis principles 67-68 <br / > 5.2 the first concrete example of the test analysis 68-71 5.3 second specific example of the test analysis 71-73 5.4 Summary 73 - 75 Chapter VI Summary and Outlook 75-77 6.1 The main job summary 75 6.2 future work outlook 75-77 Acknowledgements References 77-78 78-81 during the study period the outcome 81-82 papers published 81 <br / > involved in the project 81-82

Related dissertations

  1. The Reserch on Automatic Generation of Ice Application Framework
    WangNing ·Chongqing University ·2012 ·Master's thesis
  2. Research of Code Automation Based on Relationship-Reuse
    QiuHuiFeng ·Nanchang University ·2012 ·Master's thesis
  3. The Design and Implementation of Electronic Medical Record System Based on XML
    ZhangZuo ·Shanghai Jiaotong University ·2012 ·Master's thesis
  4. Design and Implementation of A Structured Electronic Medical Record System
  5. Research and Application of Template Technology in Content Management System
    YuBin ·Nanchang University ·2007 ·Master's thesis
  6. Design and Implementation of Multi-layer Structure Code Generator Based on SSH Framework
    WangYang ·Shenyang Ligong University ·2008 ·Master's thesis
  7. A Mobile-platform Based Cloud Web Structure Transform
  8. Study on the Network Flow Statistics System Based on NETSTREAM
  9. Research on Resource Virtualization in Cloud Manufacturing
    HuZhiNan ·Huaqiao University ·2013 ·Master's thesis
  10. Research on the Automatic Generation of Customer Reviews Report Facing Network
    ShiYingChao ·Northeastern University ·2011 ·Master's thesis
  11. Design and Implementation of the XProc Processor Based on.NET
  12. Design and Implementation of the XML Document Processing System Based on Xproc
  13. Research of Web Information Extraction Based on XML
    ZhengBangXi ·Dalian Jiaotong University ·2013 ·Master's thesis
  14. Research of Information Extraction from Web Documents Based on Tree Automaton
    YangFan ·East China Jiaotong University ·2013 ·Master's thesis
  15. Research and Application of Information Retrieval Based on XML Document
    HuZuoZuo ·Shandong University ·2013 ·Master's thesis
  16. Research and implementation of Word document service based on OOXML
  17. Research of Keyword Query Processing on XML Data
    ZhaoXingMin ·Yanshan University ·2013 ·Master's thesis
  18. Research on Subtree Results Generation of XML Keyword Search
    WangBo ·Yanshan University ·2013 ·Master's thesis
  19. Results Diversification for XML Keyword Search Based on Semantics
    SongYuLing ·Beijing Jiaotong University ·2014 ·Master's thesis
  20. Agent-based Research and Implementation on Simulation Modeling and Scenario in Battlefield Environment