Unlock instant, AI-driven research and patent intelligence for your innovation.

Code generation method and a device of a service function

A technology for code generation and business functions, applied in the field of code generation methods and devices for business functions, can solve problems such as low quality and long time consumption, so as to reduce the time taken, improve research and development efficiency, improve readability and development quality Effect

Inactive Publication Date: 2019-03-26
CHINANETCENT TECH
View PDF5 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] Embodiments of the present invention provide a method and device for generating codes for business functions to solve the technical problems of long time-consuming and low-quality development of software products by developers in the prior art

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Code generation method and a device of a service function
  • Code generation method and a device of a service function
  • Code generation method and a device of a service function

Examples

Experimental program
Comparison scheme
Effect test

example 1

[0097] If the code generation tool parses the xml data template and obtains the business data of the code to be generated including the table structure data of the code to be generated and the path information of the code template, then the code template of the code to be generated can be obtained according to the path information of the code template Furthermore, the automatic code generation tool can use freemaker technology to analyze and generate the code file to be generated according to the table structure data of the code to be generated and the code template of the code to be generated.

[0098] Among them, freemaker is a template engine, that is, a general tool based on templates and data to be changed, and used to generate output text (HTML web pages, emails, configuration files, source code, etc.). Freemaker is not intended for end users, but a Java class library, a component that programmers can embed into the products they develop. Freemaker technology mainly incl...

example 2

[0100] If the code generation tool obtains the business data of the code to be generated by parsing the xml data template, including the path information of the code template, the table structure data of the code to be generated, and the relationship data of the code to be generated, then it can be based on the code template Path information to obtain the code template of the code to be generated, and then, the automatic code generation tool can use freemaker technology to analyze and generate the code to be generated according to the table structure data of the code to be generated, the relationship data of the code to be generated, and the code template of the code to be generated document.

example 3

[0102] If the code generation tool obtains the business data of the code to be generated by parsing the xml data template, including the path information of the code template, the table structure data of the code to be generated, and the display style data of the code to be generated, then, according to the path information of the code template To obtain the code template of the code to be generated, and then, the automatic code generation tool can use freemaker technology to analyze and generate the code to be generated according to the table structure data of the code to be generated, the display style data of the code to be generated and the code template of the code to be generated document.

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a code generation method and a device of a service function. The method comprises: the xml data template entered by the user is received, the xml data template is then parsed,The table structure data corresponding to the table structure information of the code to be generated is obtained, the code template of the code to be generated is obtained according to the path information of the code template, and finally the code file to be generated is parsed and generated according to the table structure data and the code template of the code to be generated by the freemakertechnology. As user only needs to input the xml data template, the code file can be obtain without manual coding, the time occupied by the developer in repetitive work can be effectively reduce, and the research and development efficiency is greatly improved; Further, since the code file in the embodiment of the invention is generated based on the xml data template, the method provided by the embodiment of the invention can facilitate the unified management of the code and improve the readability and the development quality.

Description

technical field [0001] The invention relates to the technical field of software engineering, in particular to a method and device for generating codes of business functions. Background technique [0002] With the continuous development of information technology, the demand for various software in all walks of life is increasing day by day, and various software products are emerging in an endless stream. Faced with the demand for huge software products, developers need to design the table structure of the software product first, then execute the database table structure script to create tables, and then write the back-end code and the front-end code. The entire process is cumbersome and consumes a lot of time for developers, and due to the different levels of developers, the readability and quality of software products cannot be well guaranteed. [0003] Based on this, there is an urgent need for a code generation method for business functions to solve the problems of long t...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F8/33G06F17/24G06F17/22
CPCG06F8/33G06F40/14G06F40/186
Inventor 洪形势王梦杰
Owner CHINANETCENT TECH