发明名称 XML BASED CUSTOM CODE GENERATING METHOD AND GENERATOR, COMPUTER PROGRAM PRODUCT AND COMPUTER READABLE MEDIUM
摘要 Embodiments of the present application provide an XML based custom code generating method and an XML based custom code generator, a computer program product and a computer readable medium. The method comprises: obtaining code source information, user custom template file information and a prestored code output format rule; preprocessing the code source information, classifying the code source information and storing the same into a code source container; dynamically replacing a corresponding description part in the user custom template file with the corresponding classified code source information stored in the code source container; and outputting codes in the replaced user defined template file according to the prestored code output format rule. With the method and generator, repeated code can be automatically implemented during the development process, custom extension can be flexibly implemented, the workload of engineers can be reduced and the stability of the system is improved.
申请公布号 US2014258840(A1) 申请公布日期 2014.09.11
申请号 US201314098421 申请日期 2013.12.05
申请人 Beijing Founder Electronics Co., Ltd. ;Peking University Founder Group Co., Ltd. 发明人 BI Ji'an
分类号 G06F17/22 主分类号 G06F17/22
代理机构 代理人
主权项 1. An XML based custom code generating method, comprising: obtaining code source information, user custom template file information and a prestored code output format rule; preprocessing the code source information, classifying the code source information and storing the same into a code source container; dynamically replacing a corresponding description part in the user custom template file with the corresponding classified code source information stored in the code source container; and outputting codes in the replaced user defined template file according to the prestored code output format rule.
地址 Beijing CN