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

A method, device and electronic device for obtaining code dependencies

A technology of dependencies and codes, applied in the field of software development, which can solve the problems of huge code size, limitation of finding callers, and inability to obtain product calling relationships.

Active Publication Date: 2022-07-29
ALIBABA GRP HLDG LTD
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] However, due to the large number of codes, developers generally only have the source code of their own modules, and other modules are black boxes for them. However, the way the current IDE is used limits the search for the caller to the current module. It is impossible to obtain the call relationship of the entire product
At the same time, it is not possible to obtain the interdependence between modules at the module level

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
  • A method, device and electronic device for obtaining code dependencies
  • A method, device and electronic device for obtaining code dependencies
  • A method, device and electronic device for obtaining code dependencies

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0081] In order to more clearly understand the above objects, features and advantages of the present application, the present application will be further described in detail below with reference to the accompanying drawings and specific embodiments. It should be noted that the embodiments of the present application and the features in the embodiments may be combined with each other in the case of no conflict.

[0082] In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present application. However, the present application can be implemented in many other ways different from those described herein, and those skilled in the art can make similar promotions without departing from the connotation of the present application. Therefore, the present application is not limited by the specific implementation disclosed below.

[0083] The embodiment of the present application provides a method for obtaining a code depe...

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 present application discloses a method, an apparatus and an electronic device for obtaining a code dependency. Wherein, the method for obtaining code dependencies includes: parsing the bytecode file, obtaining information of each class and each member information in the bytecode file; based on the information of each class, determining how the methods in each class are related to other methods The calling relationship and the inheritance relationship in each class, and add dependencies between each class; according to each member information, obtain the access of member information to other obtained member information, and add dependencies in each member information; persistent class Dependencies between and among members. The technical solution constructs a hierarchical tree and a dependency graph with multiple dimensions of modules / classes / methods / attributes at the client code level by performing full dependency scanning on the bytecode file, so as to obtain the dependencies at multiple levels simply and conveniently. Provide data support for architecture analysis, module reconstruction, and quality assurance.

Description

technical field [0001] The present application relates to the field of software development, and in particular to a method for obtaining code dependencies. The solution also relates to an apparatus for obtaining a code dependency and an electronic device. Background technique [0002] At present, with the improvement of application software requirements, the volume of client code is getting larger and larger, and the code scale has grown to hundreds of modules and hundreds of thousands of classes. It is difficult for business developers and system architects to compare intuitively. , to easily obtain the mutual coupling relationship between modules / classes / methods, and there are certain thresholds for dependency analysis, system design, and module marking. [0003] In this context, developers of each module hope to easily obtain the classes owned by each module of the entire client, the basic information of each class, and the mutual calling relationship of these modules / cl...

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 Patents(China)
IPC IPC(8): G06F8/41
CPCG06F8/433
Inventor 肖浩龙
Owner ALIBABA GRP HLDG 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