Automatic program code generating method

A technology of automatic generation and program code, applied in the direction of program control devices, etc., can solve problems such as cumbersome, error-prone, and weak intelligent adaptability, and achieve the effects of rapid development capability, wide applicability, and reduced development workload

Inactive Publication Date: 2012-06-20
ZHEJIANG HONGCHENG COMP SYST
View PDF4 Cites 39 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

For example, adding, deleting, modifying and querying tables in the currently commonly used layered development mode are all calls from the business layer interface to the persistence layer interface. Most of the codes are the same, but due to the difference in class names, etc. , it is often necessary to use pasting programming methods such as copying, pasting, and modifying in the development process, which is not only cumbersome but also error-prone
Although various popular integrated development environments (IDEs) and tools can intelligently and automatically generate some codes, due to different development needs and development frameworks, such intelligent adaptability is still relatively weak.

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
  • Automatic program code generating method
  • Automatic program code generating method
  • Automatic program code generating method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0025] Embodiment 1: the present invention is further described below in conjunction with specific embodiment, but protection scope of the present invention is not limited to this:

[0026] Such as figure 1 Shown: By reading the parameter definition configuration file, the specified parameter value set is replaced into the parameter variable of the template file content specified by the generation plan, so as to obtain the content of the final generated code file, and the file can be stored in the specified directory according to the generation plan inside. Through this principle, it can well support all current development languages ​​and development frameworks. The main process of code generation includes template file preparation, generation plan definition, parameter definition and generation plan execution.

[0027] The following takes the generation of java code files as an example to describe in detail the specific implementation and process of automatic code generati...

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 relates to an automatic program code generating method supporting various development language open source frameworks, which includes: analyzing repeated codes in various current development languages and development frameworks, designing according to the common characteristics that the repeated codes are regular and customizable, and defining the repeated codes and rules into a template file for automatic generation. Compiling of repeated codes by developers is avoided, development efficiency is improved greatly, and the problems of the prior art are solved.

Description

technical field [0001] The invention relates to a method for automatically generating program codes supporting open-source frameworks of various development languages. Background technique [0002] In the current software development process, developers often have to write a lot of repetitive code. For example, adding, deleting, modifying, and querying tables in the currently commonly used layered development mode are all calls from the business layer interface to the persistence layer interface. Most of the codes are the same, but due to differences in class names, etc. , It is often necessary to use pasting programming methods such as copying, pasting, and modification in the development process, which is not only cumbersome but also error-prone. Although the current popular integrated development environments (IDEs) and tools can intelligently and automatically generate some codes, due to differences in development needs and development frameworks, such intelligent adapt...

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 ZHEJIANG HONGCHENG COMP SYST
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