Target code viewing method and device and interface code processing method and device

The target code is automatically obtained and displayed through the method path information in the interface code, which solves the problem of low efficiency in cross-module code viewing and significantly improves the efficiency of software development.

CN118778993APending Publication Date: 2024-10-15BEIJING BAIDU NETCOM SCI & TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410749065.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-11
Publication Date
2024-10-15

AI Technical Summary

Technical Problem

In huge source code projects, cross-module code viewing is inefficient. Users need to manually search and click on multiple search results to locate the target code, which is time-consuming and labor-intensive.

Method used

Through the method path information in the interface code, the target code is automatically obtained and displayed, simplifying the cross-module code viewing process and improving efficiency.

Benefits of technology

It achieves fast and convenient cross-module code viewing and improves software development efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118778993A_ABST
    Figure CN118778993A_ABST
Patent Text Reader

Abstract

The invention provides a target code viewing and interface code processing method and device, and relates to the field of artificial intelligence such as software development and cloud computing. The target code viewing method can comprise the steps that in response to determining that a user sends a viewing request for a target method in a first code file corresponding to a first module, the target method is a method provided by a second module, and method path information of the target method is obtained from a released interface code corresponding to the second module, the interface code comprises method path information of each method externally provided by the second module; and determining a target code corresponding to the target method according to the obtained method path information, and displaying the target code. By applying the scheme, the processing efficiency and the like can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of artificial intelligence technology, and in particular to a method and device for checking target code and processing interface code in fields such as software development and cloud computing. Background Art

[0002] In software development, we often encounter the following problem: in a huge source code project, we must get all the source code to compile and debug, even if we only make some local modifications. Accordingly, the source code engineering componentization technology is proposed to decouple modules from each other, thus facilitating compilation and debugging. Summary of the invention

[0003] The present invention provides a method and device for object code checking and interface code processing.

[0004] A method for viewing an object code, comprising:

[0005] In response to determining that a user issues a viewing request for a target method in a first code file corresponding to a first module, the target method is a method provided by a second module, obtaining method path information of the target method from a published interface code corresponding to the second module, the interface code including method path information of each method provided externally by the second module;

[0006] The target code corresponding to the target method is determined according to the acquired method path information, and the target code is displayed.

[0007] An interface code processing method, comprising:

[0008] For the published second module, a corresponding interface code is generated, wherein the interface code includes method path information of each method provided by the second module to the outside;

[0009] The interface code is published and used to determine and display the target code when the target object determines that the user issues a viewing request for the target method in the first code file corresponding to the first module. The target method is the method provided by the second module, the target code is the code corresponding to the target method, and the target code is obtained based on the method path information of the target method obtained from the interface code.

[0010] A target code viewing device includes: an acquisition module and a positioning module;

[0011] The acquisition module is used to, in response to determining that a user issues a viewing request for a target method in a first code file corresponding to a first module, where the target method is a method provided by a second module, acquire method path information of the target method from an interface code corresponding to the published second module, where the interface code includes method path information of each method provided externally by the second module;

[0012] The positioning module is used to determine the target code corresponding to the target method according to the acquired method path information, and display the target code.

[0013] An interface code processing device comprises: a generation module and a publishing module;

[0014] The generating module is used to generate a corresponding interface code for the published second module, wherein the interface code includes method path information of each method provided by the second module to the outside;

[0015] The publishing module is used to publish the interface code, and is used to determine and display the target code when the target object determines that the user issues a viewing request for the target method in the first code file corresponding to the first module. The target method is the method provided by the second module, and the target code is the code corresponding to the target method, and the target code is obtained based on the method path information of the target method obtained from the interface code.

[0016] An electronic device, comprising:

[0017] at least one processor; and

[0018] a memory communicatively connected to the at least one processor; wherein,

[0019] The memory stores instructions that can be executed by the at least one processor. The instructions are executed by the at least one processor to enable the at least one processor to perform the method described above.

[0020] A non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are used to cause a computer to execute the method as described above.

[0021] A computer program product comprises a computer program / instruction, wherein the computer program / instruction implements the above method when executed by a processor.

[0022] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] The accompanying drawings are used to better understand the present solution and do not constitute a limitation of the present disclosure.

[0024] Figure 1 A flowchart of an embodiment of the object code viewing method disclosed in the present invention;

[0025] Figure 2 A flowchart of an embodiment of the interface code processing method disclosed in the present invention;

[0026] Figure 3 It is a schematic diagram of the structure of the target code viewing device embodiment 300 of the present disclosure;

[0027] Figure 4 It is a schematic diagram of the structure of the interface code processing device embodiment 400 of the present disclosure;

[0028] Figure 5 A schematic block diagram of an electronic device 500 that can be used to implement an embodiment of the present disclosure is shown. DETAILED DESCRIPTION

[0029] The following is a description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present disclosure. Similarly, for the sake of clarity and conciseness, descriptions of well-known functions and structures are omitted in the following description.

[0030] In addition, it should be understood that the term "and / or" in this article is only a description of the association relationship of the associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.

[0031] Figure 1 The flowchart of the target code viewing method embodiment of the present disclosure is as follows. Figure 1 As shown, the following specific implementation methods are included.

[0032] In step 101, in response to determining that a user has issued a viewing request for a target method in a first code file corresponding to a first module, the target method is a method provided by a second module, and method path information of the target method is obtained from an interface code corresponding to the published second module, wherein the interface code includes method path information of each method provided by the second module to the outside.

[0033] In step 102, the target code corresponding to the target method is determined according to the acquired method path information, and the target code is displayed.

[0034] After adopting source code engineering componentization technology, modules are decoupled. For example, for module A and module B, module A cannot directly call the code of module B, but needs to indirectly call the method provided by module B through the interface method between components. In addition, during the development process, users (such as R&D personnel) often need to view codes across modules, but due to the excessive decoupling between modules, it is very inconvenient and inefficient for users to view codes across modules.

[0035] For example, when a user needs to view the target code corresponding to a target method, he usually needs to use the method name of the target method to search in the project code library and obtain multiple search results. Furthermore, for multiple search results, he needs to click to view them one by one to determine whether they are the required target codes, etc., which is time-consuming, labor-intensive and inefficient.

[0036] By adopting the scheme described in the above method implementation example, when it is necessary to view the target code of the target method across modules, the required target code can be automatically obtained and displayed with the help of the method path information stored in the interface code in response to the viewing request issued by the user, thereby facilitating users to view the code across modules and improving processing efficiency.

[0037] For a module such as the second module, multiple methods may be provided externally. When the second module is released, the interface code corresponding to the second module may be released. The interface code may include method path information of each method provided externally by the second module.

[0038] In actual applications, when a user needs to view a target method in a first code file corresponding to a first module, a viewing request may be issued. In some embodiments of the present disclosure, in response to determining that a user has selected a target method and triggered a predetermined shortcut key, it may be determined that the user has issued a viewing request for the target method, or in response to determining that a user has selected a target method and clicked a predetermined jump button, it may be determined that the user has issued a viewing request for the target method. That is, a user may issue a viewing request in different ways, which is very flexible and convenient.

[0039] For example, after the user selects the target method, he further clicks a predetermined shortcut key, then it can be determined that the user has issued a viewing request. There is no restriction on what kind of shortcut key the predetermined shortcut key is, and the shortcut key can refer to a single key or a combination of multiple keys. There is also no restriction on how the user selects the target method.

[0040] For example, after the user selects the target method, he further clicks the predetermined jump button, then it can be determined that the user has issued a viewing request. Figure 1 The execution subject of the illustrated method embodiment may be an integrated environment (IDEA, Intelligent Java Integrated Development Environment) plug-in for object-oriented programming language development, and accordingly, the predetermined jump button may be a trigger button corresponding to the IDEA plug-in.

[0041] After determining that the user has issued a viewing request, the method path information of the target method can be obtained from the interface code corresponding to the second module, and then the target code corresponding to the target method can be determined based on the obtained method path information.

[0042] In some embodiments of the present disclosure, the method path information of the target method may include: the class name of the class to which the target method belongs, and the method name of the target method, wherein each method belongs to / corresponds to a class.

[0043] Accordingly, in some embodiments of the present disclosure, a method for determining the target code corresponding to the target method based on the acquired method path information may include: for the second code file corresponding to the second module, determining the code line where the target method is located based on the class name and the method name, and using the code in the code line as the target code.

[0044] The file names (or package names) of code files corresponding to different modules are different, and one file name may specifically include different class names and method names. Therefore, for the second code file corresponding to the second module, a method can be uniquely identified based on the class name and method name. Accordingly, the second code file can be opened, and the code line where the target method is located can be located based on the class name of the class to which the target method belongs and the method name of the target method (i.e., the class name and method name corresponding to the target method), and the code in the located code line can be used as the target code.

[0045] Compared with traditional implementation methods, the method of obtaining target code in the solution described in the present disclosure is very simple and convenient, thereby improving the user's code viewing efficiency and further improving the efficiency of software development.

[0046] Furthermore, the acquired target code may be displayed to the user.

[0047] It can be seen that the implementation of the above-mentioned target code viewing method needs to rely on the interface code corresponding to the second module. The following is an explanation of the publishing method of the interface code.

[0048] Figure 2 Flow chart of an embodiment of the interface code processing method disclosed in the present invention. Figure 2 As shown, the following specific implementation methods are included.

[0049] In step 201, a corresponding interface code is generated for the published second module, and the interface code includes method path information of each method provided by the second module to the outside.

[0050] In step 202, the interface code is published and used to determine the target code and display it when the target object determines that the user issues a view request for the target method in the first code file corresponding to the first module. The target method is the method provided by the second module, the target code is the code corresponding to the target method, and the target code is obtained based on the method path information of the target method obtained from the interface code.

[0051] By adopting the scheme described in the above method embodiment, when it is necessary to view the target code of the target method across modules, the required target code can be automatically obtained and displayed with the help of the method path information stored in the interface code in response to the viewing request issued by the user, thereby facilitating users to view the code across modules and improving processing efficiency.

[0052] In practical applications, the second module may refer to any module, that is, any module may be processed according to the method described in the present disclosure.

[0053] According to the traditional processing method, the corresponding interface code will be released at the same time as the second module is released. However, the solution described in the present disclosure proposes that the method path information of each method provided by the second module to the outside can be further added on the basis of the original content included in the interface code.

[0054] In some embodiments of the present disclosure, the method path information of each method can be saved in the interface code by annotation. For example, the class name and method name corresponding to each method can be saved in the annotation parameters of the interface method, which is very simple and convenient. There is no restriction on how to obtain the class name and method name corresponding to each method. In addition, the accuracy of the target code located later can be improved with the help of the saved information.

[0055] In addition, in some embodiments of the present disclosure, the target object may include: an IDEA plug-in.

[0056] That is, through the IDEA plug-in, when the user issues a viewing request, the class name and method name corresponding to the target method can be automatically obtained, and the method in the class can be automatically located based on the obtained class name and method name, thereby realizing automatic jump and display of the target code.

[0057] In combination with the above introduction, the following is the overall implementation process of the interface code processing and target code viewing described in this disclosure.

[0058] First, the second module and the corresponding interface code can be released. Specifically, when the second module is released, the corresponding interface code can be generated and the interface code can be released, including the method path information of each method provided by the second module to the outside. For example, the method path information of each method can be saved in the interface code through annotations.

[0059] Afterwards, when the user needs to view the target code corresponding to the target method in the first code file corresponding to the first module, a viewing request can be issued, and the target method is the method provided by the second module. For example, the user can select the target method and trigger a predetermined shortcut key, or the user can select the target method and click a predetermined jump button to issue a viewing request.

[0060] Accordingly, after the IDEA plug-in determines that the user has issued a viewing request, it can obtain the method path information of the target method from the interface code corresponding to the second module, including the class name of the class to which the target method belongs and the method name of the target method.

[0061] Furthermore, the IDEA plug-in can determine the target code corresponding to the target method based on the obtained method path information, and can display the target code. For example, for the second code file corresponding to the second module, the code line where the target method is located can be determined based on the obtained class name and method name, and the code in the code line can be used as the target code.

[0062] The above process can be further illustrated by the following example:

[0063] Assuming that the methods provided by the second module include method a, method b, and method c, the class names and method names corresponding to these methods can be saved in the interface code corresponding to the second module respectively. Assuming that the user needs to view the target code corresponding to method b in the first code file corresponding to the first module, a viewing request can be issued for method b. Accordingly, the IDEA plug-in can obtain the class name and method name corresponding to method b from the interface code, and can determine the target code corresponding to method b from the second code file corresponding to the second module based on the obtained class name and method name, and display it.

[0064] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity of description, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present disclosure is not limited by the described order of actions, because according to the present disclosure, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present disclosure. In addition, for parts that are not described in detail in a certain embodiment, please refer to the relevant descriptions in other embodiments.

[0065] The above is an introduction to the method embodiment. The following is a further explanation of the scheme disclosed in the present invention through an apparatus embodiment.

[0066] Figure 3 FIG. 3 is a schematic diagram of the structure of the target code viewing device embodiment 300 of the present disclosure. Figure 3 As shown, it includes: an acquisition module 301 and a positioning module 302.

[0067] The acquisition module 301 is used to respond to determining that a user has issued a viewing request for a target method in a first code file corresponding to a first module, and the target method is a method provided by a second module, and obtain the method path information of the target method from the interface code corresponding to the published second module, wherein the interface code includes the method path information of each method provided by the second module to the outside.

[0068] The positioning module 302 is used to determine the target code corresponding to the target method according to the acquired method path information, and display the target code.

[0069] By adopting the scheme described in the above-mentioned device embodiment, when it is necessary to view the target code of the target method across modules, the required target code can be automatically obtained and displayed with the help of the method path information stored in the interface code in response to the viewing request issued by the user, thereby facilitating users to view the code across modules and improving processing efficiency.

[0070] In some embodiments of the present disclosure, the acquisition module 301 can determine that the user has issued a view request for the target method in response to determining that the user has selected the target method and triggered a predetermined shortcut key, or the acquisition module 301 can determine that the user has issued a view request for the target method in response to determining that the user has selected the target method and clicked a predetermined jump button.

[0071] After determining that the user has issued a viewing request, the acquisition module 301 can also obtain the method path information of the target method from the interface code corresponding to the second module, and then the positioning module 302 can determine the target code corresponding to the target method based on the obtained method path information.

[0072] In some embodiments of the present disclosure, the method path information of the target method may include: the class name of the class to which the target method belongs, and the method name of the target method, wherein each method belongs to / corresponds to a class.

[0073] Accordingly, in some embodiments of the present disclosure, the positioning module 302 determines the target code corresponding to the target method based on the acquired method path information, which may include: for the second code file corresponding to the second module, determining the code line where the target method is located based on the class name and the method name, and using the code in the code line as the target code.

[0074] Figure 4 FIG. 4 is a schematic diagram of the structure of the interface code processing device embodiment 400 of the present disclosure. Figure 4 As shown, it includes: a generating module 401 and a publishing module 402.

[0075] The generation module 401 is used to generate corresponding interface codes for the published second module, and the interface codes include method path information of each method provided by the second module to the outside.

[0076] The publishing module 402 is used to publish the interface code, and is used to determine and display the target code when the target object user issues a viewing request for the target method in the first code file corresponding to the first module. The target method is the method provided by the second module, and the target code is the code corresponding to the target method, and the target code is obtained based on the method path information of the target method obtained from the interface code.

[0077] By adopting the scheme described in the above-mentioned device embodiment, when it is necessary to view the target code of the target method across modules, the required target code can be automatically obtained and displayed with the help of the method path information stored in the interface code in response to the viewing request issued by the user, thereby facilitating users to view the code across modules and improving processing efficiency.

[0078] In some embodiments of the present disclosure, the generation module 401 may save the method path information of each method into the interface code by way of annotation.

[0079] In addition, in some embodiments of the present disclosure, the target object may include: an IDEA plug-in.

[0080] Figure 4 and Figure 5 The specific working process of the device embodiment shown can refer to the relevant description in the aforementioned method embodiment, which will not be repeated here.

[0081] The solution disclosed in this disclosure can be applied to the field of artificial intelligence, especially to software development and cloud computing. Artificial intelligence is a discipline that studies how computers can simulate certain human thought processes and intelligent behaviors (such as learning, reasoning, thinking, planning, etc.). It includes both hardware-level and software-level technologies. Artificial intelligence hardware technologies generally include technologies such as sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, and big data processing. Artificial intelligence software technologies mainly include computer vision technology, speech recognition technology, natural language processing technology, machine learning / deep learning, big data processing technology, knowledge graph technology, and other major directions.

[0082] In addition, the codes and the like in the embodiments described in this disclosure are not for a specific user and do not reflect the personal information of a specific user. In the technical solution of this disclosure, the collection, storage, use, processing, transmission, provision and disclosure of user personal information involved are in compliance with the provisions of relevant laws and regulations and do not violate public order and good customs.

[0083] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium and a computer program product.

[0084] Figure 5 A schematic block diagram of an electronic device 500 that can be used to implement an embodiment of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital assistants, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.

[0085] like Figure 5 As shown, the device 500 includes a computing unit 501, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 502 or a computer program loaded from a storage unit 508 into a random access memory (RAM) 503. In the RAM 503, various programs and data required for the operation of the device 500 can also be stored. The computing unit 501, the ROM 502, and the RAM 503 are connected to each other via a bus 504. An input / output (I / O) interface 505 is also connected to the bus 504.

[0086] A number of components in the device 500 are connected to the I / O interface 505, including: an input unit 506, such as a keyboard, a mouse, etc.; an output unit 507, such as various types of displays, speakers, etc.; a storage unit 508, such as a disk, an optical disk, etc.; and a communication unit 509, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 509 allows the device 500 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0087] The computing unit 501 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 501 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 501 performs the various methods and processes described above, such as the methods described in the present disclosure. For example, in some embodiments, the methods described in the present disclosure may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 508. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 500 via ROM 502 and / or communication unit 509. When the computer program is loaded into RAM 503 and executed by the computing unit 501, one or more steps of the method described in the present disclosure may be performed. Alternatively, in other embodiments, the computing unit 501 may be configured to perform the method described in the present disclosure in any other appropriate manner (e.g., by means of firmware).

[0088] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0089] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0090] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0091] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0092] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.

[0093] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship with each other. The server may be a cloud server, a server of a distributed system, or a server combined with a blockchain.

[0094] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.

[0095] The above specific implementations do not constitute a limitation on the protection scope of the present disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present disclosure shall be included in the protection scope of the present disclosure.

Claims

1. A method for viewing a target code, comprising: In response to determining that a user issues a viewing request for a target method in a first code file corresponding to a first module, the target method is a method provided by a second module, obtaining method path information of the target method from a published interface code corresponding to the second module, the interface code including method path information of each method provided externally by the second module; The target code corresponding to the target method is determined according to the acquired method path information, and the target code is displayed.

2. The method according to claim 1, wherein: The step of responding to determining that the user issues a viewing request for a target method in the first code file corresponding to the first module comprises one of the following: In response to determining that the user selects the target method and triggers a predetermined shortcut key, determining that the user issues a viewing request for the target method; In response to determining that the user selects the target method and clicks a predetermined jump button, it is determined that the user issues a viewing request for the target method.

3. The method according to claim 1 or 2, wherein: The method path information of the target method includes: the class name of the class to which the target method belongs, and the method name of the target method.

4. The method according to claim 3, wherein: Determining the target code corresponding to the target method according to the acquired method path information includes: For the second code file corresponding to the second module, the code line where the target method is located is determined according to the class name and the method name, and the code in the code line is used as the target code.

5. An interface code processing method, comprising: For the published second module, a corresponding interface code is generated, wherein the interface code includes method path information of each method provided by the second module to the outside; The interface code is published and used to determine and display the target code when the target object determines that the user issues a viewing request for the target method in the first code file corresponding to the first module. The target method is the method provided by the second module, the target code is the code corresponding to the target method, and the target code is obtained based on the method path information of the target method obtained from the interface code.

6. The method according to claim 5, wherein: The generating of the corresponding interface code includes: saving the method path information of each method into the interface code by way of annotation.

7. The method according to claim 5 or 6, wherein: The target objects include: an integrated environment plug-in for object-oriented programming language development.

8. An object code viewing device, comprising: Acquisition module and positioning module; The acquisition module is used to, in response to determining that a user issues a viewing request for a target method in a first code file corresponding to a first module, where the target method is a method provided by a second module, acquire method path information of the target method from an interface code corresponding to the published second module, where the interface code includes method path information of each method provided externally by the second module; The positioning module is used to determine the target code corresponding to the target method according to the acquired method path information, and display the target code.

9. The device according to claim 8, wherein: The acquisition module determines, in response to determining that the user selects the target method and triggers a predetermined shortcut key, that the user issues a viewing request for the target method; Alternatively, the acquisition module determines that the user issues a viewing request for the target method in response to determining that the user selects the target method and clicks a predetermined jump button.

10. The device according to claim 8 or 9, wherein: The method path information of the target method includes: the class name of the class to which the target method belongs, and the method name of the target method.

11. The device according to claim 10, wherein: The positioning module determines the code line where the target method is located according to the class name and the method name for the second code file corresponding to the second module, and uses the code in the code line as the target code.

12. An interface code processing device, comprising: Generate modules and publish modules; The generating module is used to generate a corresponding interface code for the published second module, wherein the interface code includes method path information of each method provided by the second module to the outside; The publishing module is used to publish the interface code, and is used to determine and display the target code when the target object determines that the user issues a viewing request for the target method in the first code file corresponding to the first module. The target method is the method provided by the second module, and the target code is the code corresponding to the target method, and the target code is obtained based on the method path information of the target method obtained from the interface code.

13. The device according to claim 12, wherein: The generation module saves the method path information of each method into the interface code by way of annotation.

14. The device according to claim 12 or 13, wherein: The target objects include: an integrated environment plug-in for object-oriented programming language development.

15. An electronic device, comprising: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 7.

16. A non-transitory computer-readable storage medium storing computer instructions, wherein: The computer instructions are used to make a computer execute the method according to any one of claims 1 to 7.

17. A computer program product, comprising a computer program / instruction, wherein when the computer program / instruction is executed by a processor, the method according to any one of claims 1 to 7 is implemented.