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

Code reconstruction method, device, equipment and medium

A code and syntax technology, applied in the field of code refactoring, can solve the problems of low code refactoring efficiency, achieve the effect of improving efficiency and simplifying the process

Pending Publication Date: 2020-09-29
TENCENT TECH (SHENZHEN) CO LTD
View PDF0 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] Obviously, the efficiency of code refactoring is low by adopting the code refactoring method in related technologies

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

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0035] Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with aspects of the present application as recited in the appended claims.

[0036] For ease of understanding, the terms involved in the embodiments of the present application are explained below.

[0037] 1) Cloud technology (Cloud technology)

[0038] Cloud technology refers to the general term of network technology, information technology, integration technology, management platform technology, application technology, etc. based on cloud computing business mo...

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 a code reconstruction method and device, equipment and a medium, and relates to the technical field of software engineering. The method comprises the steps of obtaining a request record file, wherein the request record file comprises at least one network request; analyzing a request record file, screening out a target network request in the request record file, wherein thetarget network request is a network request initiated by calling a target API, and a first implementation code corresponding to the target API adopts a first code structure; extracting target interface information corresponding to the target API from the target network request; and generating a second implementation code corresponding to the target API based on the target interface information and a second code structure, wherein the second code structure is different from the first code structure. Compared with the mode of manually analyzing the request record file and determining the interface parameters, the method and the device have the advantages that the target interface information corresponding to the target API can be automatically extracted, the process of analyzing the requestrecord file is simplified, and the code reconstruction efficiency is further improved.

Description

technical field [0001] The embodiments of the present application relate to the technical field of software engineering, and in particular to a code reconstruction method, device, equipment and medium. Background technique [0002] When an application client or a service server accesses the cloud platform, it needs to call a corresponding application programming interface (Application Programming Interface, API) to initiate an access request to the cloud platform. With the continuous modification of API functions, in order to make the implementation code of API more suitable for the current needs, or when there is a need to change the structure of the implementation code of API, it is necessary to refactor the implementation code of API. [0003] In related technologies, when performing code refactoring, after obtaining input parameter and output parameter information corresponding to the API by manually viewing and analyzing request information, the refactored API code is m...

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/72G06F8/41
CPCG06F8/42G06F8/72
Inventor 黄亚伟
Owner TENCENT TECH (SHENZHEN) 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