Method and device for calling correlation module
A technology of corresponding relationship and parameters, applied in program control design, instrument, electrical digital data processing, etc., can solve the problems of android system not being able to compile correctly, unable to generate framework.jar package, unable to realize compilation and so on
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0044] see figure 1 , showing a flow chart of Embodiment 1 of a method for invoking an association module provided by the present application, including:
[0045] Step S101: According to the preset package name of the associated module, obtain the package of the associated module, and search for the first method from the package of the associated module;
[0046] The associated module in this embodiment is an associated module with a preset package name removed from the framework.jar package in advance, and is a module associated with other modules in the framework.jar package.
[0047] When a method in the associated module needs to be called, it is first necessary to obtain the package of the associated module according to the preset package name for the removed associated module, which is a new jar package.
[0048] After obtaining the package of the associated module, the first method is searched from this package.
[0049] Step S102: When the first method is found, search...
Embodiment 2
[0058] see figure 2 , showing a flow chart of Embodiment 2 of a method for invoking an associated module provided by the present application, figure 1 In the flow chart shown, before step S101, it also includes:
[0059] Step S105: When it is judged that the number of methods in the framework.jar package reaches the preset upper limit, remove the associated module;
[0060] The upper limit may be the upper limit of the jar package, 65536, or a preset integer value smaller than the 65536, so that methods can still be added to the framework.jar package during the removal process.
[0061] When the number of methods added to the framework.jar package reaches the preset upper limit, in order to ensure that the framework.jar package can be compiled correctly, it is necessary to remove the associated module, which has a large number of methods , remove the associated module, and provide space for adding more methods to the framework.jar package.
[0062] Step S106: adding a firs...
Embodiment 3
[0071] see Figure 4 , showing a flow chart of Embodiment 3 of a method for invoking an associated module provided by the present application, figure 1 In the flowchart shown, it also includes:
[0072] Step S108: Judging whether the first method is found in the package of the associated module, if found, execute step S102, otherwise execute step S110;
[0073] When the first method is not found in the package of the associated module, it indicates that there is a fault, and an alarm message is generated to alert the programmer that a fault occurs, and the program in the package of the associated module is checked and adjusted.
[0074] Step S109: judging whether the first parameter is found from the first method, if found, execute step S103, otherwise execute step S110;
[0075] Step S110: Generate an alarm information alarm.
[0076] When the first parameter is not found in the first method, it means that there is a fault, an alarm message is generated to alert the progra...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 