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.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com