Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Code conversion method and device, electronic equipment and storage medium

A code conversion and code technology, applied in the computer field, can solve the problems of inconvenient development and maintenance, increase labor costs, and disadvantage code conversion efficiency, and achieve the effect of avoiding simple and blunt conversion operations, reducing labor costs, and reducing code repetition rate.

Pending Publication Date: 2022-07-29
CHINA PING AN LIFE INSURANCE CO LTD
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] In human-written code, there are usually repetitive codes, such as repeated use of the same constant in a method, etc. If these repetitive codes are translated line by line into object-oriented language program code, although the accuracy of the statement can be guaranteed, the Great inconvenience for subsequent development and maintenance
Therefore, in the existing method, developers will artificially optimize the code after the initial conversion to reduce the code repetition rate, but this method increases labor costs and is not conducive to improving the overall code conversion efficiency

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 conversion method and device, electronic equipment and storage medium
  • Code conversion method and device, electronic equipment and storage medium
  • Code conversion method and device, electronic equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0052] It should be understood that the specific embodiments described herein are only used to explain the present application, but not to limit the present application.

[0053] In the ensuing description, suffixes such as 'module', 'component' or 'unit' used to represent elements are used only to facilitate the description of the present application, and have no specific meaning per se. Thus, "module", "component" or "unit" may be used interchangeably.

[0054] In artificially written code, there are usually repetitive codes, such as the repeated use of the same constants in a method. If these repetitive codes are literally translated into object-oriented language program code line by line, although the accuracy of the statement can be guaranteed, it is not. It brings great inconvenience to subsequent development and maintenance. Therefore, in the existing method, developers will artificially optimize the code after preliminary conversion to reduce the code repetition rate,...

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 conversion method and device, electronic equipment and a storage medium, and the method comprises the steps: obtaining a to-be-converted source code, and determining constant information, variable information and code line information corresponding to the source code; a first code is identified from the source code according to the constant information. And identifying a second code from the source code according to the variable information. And according to the code line information, identifying a code block meeting a packaging condition from the source code. And packaging the code block into a target object, and obtaining binding information of the code block and the target object. In the process of converting the source code, the first code is converted into the class static variable, the second code is converted into the entity class, and the target object is called according to the binding information, so that the code repetition rate is reduced, and the code conversion efficiency is improved.

Description

technical field [0001] The present invention relates to the technical field of computers, in particular to a code conversion method and device, electronic equipment and storage medium. Background technique [0002] In human-written code, there are usually repetitive codes, such as the repeated use of the same constants in a method. If these repetitive codes are literally translated into object-oriented language program code line by line, although the accuracy of the statement can be guaranteed, it is not. It brings great inconvenience to subsequent development and maintenance. Therefore, in the existing method, developers will artificially optimize the initially converted code to reduce the code repetition rate, but this method increases labor costs and is not conducive to improving the overall code conversion efficiency. SUMMARY OF THE INVENTION [0003] The present application provides a code conversion method and device, an electronic device, and a storage medium, the ...

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): G06F8/41G06F8/30
CPCG06F8/447G06F8/42G06F8/315
Inventor 温秋明钟加武黄聪
Owner CHINA PING AN LIFE INSURANCE CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products