Code generation method and apparatus

A code generation and code technology, which is applied in the field of code generation methods and devices, can solve the problems that the generation process cannot be visualized, the generation method lacks versatility, etc., and achieve the effects of shortening the development cycle, improving development efficiency, and reducing development costs

Inactive Publication Date: 2017-01-04
BANK OF COMMUNICATIONS
View PDF5 Cites 35 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0008] An embodiment of the present invention provides a code generation method to solve the problems that existing code generation methods lack versatility and the generation process cannot be visualized. The method includes:

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 apparatus
  • Code generation method and apparatus
  • Code generation method and apparatus

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0056] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention more clear, the embodiments of the present invention will be further described in detail below in conjunction with the accompanying drawings. Here, the exemplary embodiments and descriptions of the present invention are used to explain the present invention, but not to limit the present invention.

[0057] In view of the deficiencies in the prior art, an embodiment of the present invention provides a code generation method. The code generation method of the embodiment of the present invention is an automatic code generation method based on semantic analysis, which aims to solve the problems that the existing code generation methods lack versatility and the generation process cannot be visualized, thereby improving the efficiency of software program development, reducing development costs, and shortening the development time. cycle.

[0058] figure 1 It is a sch...

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 apparatus. The method comprises the steps of performing semantic analysis on a physical data model (PDM) file to obtain a PDM file object; converting the PDM file object into a table directory tree, wherein the table directory tree comprises a table object corresponding to the PDM file object; displaying the table directory tree in a visual interface; determining a table object needed to be subjected to code generation in the visual interface, and performing table structure information configuration on the determined table object; configuring system parameters and system code templates, and configuring self-defined parameters and self-defined templates; filling a template group composed of the system code templates and the self-defined templates with the table structure information, the system parameters and the self-defined parameters to generate a preview code; and after the preview code is confirmed to be correct, generating foreground and background codes corresponding to the preview code. According to the code generation method and apparatus, the software program development efficiency can be improved, the development cost can be reduced, and the development cycle can be shortened.

Description

technical field [0001] The invention relates to the technical field of computer software, in particular to a code generation method and device. Background technique [0002] At present, the development of many application software is centered on data, adding, deleting, modifying and checking it, and then realizing most of the business processing functions. Usually, in the development process of an application program, when writing entity classes and adding, deleting, modifying, and checking methods for data tables, there will be some same operating procedures and operating methods. Because the current code writing mainly relies on programmers to do it manually , It is bound to require a lot of manpower and time for repetitive code writing work. At the same time, the coding style of programmers will be different, which is not conducive to the later maintenance of the program. [0003] Although there are some code generation methods and systems, there are mainly the followin...

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
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/44
Inventor 仇军林海南陈伟肖文生
Owner BANK OF COMMUNICATIONS
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