Code automatic generation method, code automatic generation device and electronic equipment

An automatic generation and code generation technology, applied in the field of software engineering, can solve the problems of complicated configuration, poor code generation expansion ability, fixed code generation type, etc.

Inactive Publication Date: 2018-02-23
北信源系统集成有限公司
View PDF5 Cites 23 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] In view of this, the purpose of the present invention is to provide an automatic code generation method, device and electronic equipment, to alleviate the existing au

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 automatic generation method, code automatic generation device and electronic equipment
  • Code automatic generation method, code automatic generation device and electronic equipment
  • Code automatic generation method, code automatic generation device and electronic equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0065] A code automatic generation method, refer to figure 1 , the method includes:

[0066] S102. Receive the automatic code generation request sent by the user, wherein the automatic code generation request carries at least the following information: the database table structure of the code to be generated, the path to generate the code, and the template type of the code to be generated;

[0067] In the embodiment of the present invention, the execution body of the method is an automatic code generation tool. When the user sends a request for automatic code generation, he needs to configure the database table structure information and the information of generated code (such as the path to generate code, template type) to complete the sending of the automatic code generation request. The specific process will be described below.

[0068] This method is mainly used for the generation of public codes, that is, when users write software, they can generate the public codes of t...

Embodiment 2

[0141] A code automatic generation device, refer to Figure 7 , the device consists of:

[0142] The receiving module 20 is configured to receive the automatic code generation request sent by the user, wherein the automatic code generation request carries at least the following information: the database table structure of the code to be generated, the path to generate the code, and the template type of the code to be generated;

[0143] The calling module 21 is used to call the target code template in the code template library according to the code automatic generation request, wherein the code template library includes a plurality of preset sub-code templates, the target code template is related to a plurality of preset sub-code templates, and the target The code template matches the information carried in the automatic code generation request, and the target code template contains el expressions;

[0144] The replacement module 22 is used to replace the el expression in the...

Embodiment 3

[0159] An embodiment of the present invention provides an electronic device, referring to Figure 8 , the electronic device includes: a processor 30, a memory 31, a bus 32 and a communication interface 33, the processor 30, the communication interface 33 and the memory 31 are connected through the bus 32; the processor 30 is used to execute the executable module stored in the memory 31, For example a computer program. The processor implements the steps of the methods described in the method embodiments when the processor executes the program.

[0160]Wherein, the memory 31 may include a high-speed random access memory (RAM, RandomAccessMemory), and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory. The communication connection between the system network element and at least one other network element is realized through at least one communication interface 33 (which may be wired or wireless), and the Internet, wide area network, loc...

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 provides a code automatic generation method, a code automatic generation device and electronic equipment. The code automatic generation method comprises the following steps: receiving acode automatic generation request sent by a user; calling a target code module in a code template library according to the code automatic generation request; replacing an el expression in the target code template by virtue of data in a database table structure, and obtaining a to-be-generated code file, so as to obtain to-be-generated codes. The code automatic generation method provided by the invention has the advantages that the target code template can be determined according to a template type required by a user, further the data in the database table structure is used for replacing the elexpression in the target code template, and codes of a corresponding type can be obtained, thereby being more intelligent and flexible; besides, when a code template of other types needs to be generated, only the code template library is expanded, expandability is strong, and the technical problems that configuration is miscellaneous, types of generated codes is fixed and code generation expansion capability is poor in an existing code automatic generation method are alleviated.

Description

technical field [0001] The invention relates to the technical field of software engineering, in particular to an automatic code generation method, device and electronic equipment. Background technique [0002] With the vigorous development of the information age, the demand for various software in all walks of life is increasing day by day, and various software products emerge in endlessly, but the quality of software products is uneven, and IT practitioners have become the office group with the most work pressure. In the face of huge demand for software products, how to improve the efficiency of software generation and reduce the cycle and cost of software development has become the focus of attention of software developers and even the entire industry. In the current technology, automatic code generation tools can be used to reduce the cycle time and manpower consumed in the software product development process. [0003] However, in the existing automatic code generation ...

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/30
CPCG06F8/30
Inventor 林皓吴迪胡建斌戴相龙白志凌
Owner 北信源系统集成有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products