Complete code generation method and device, equipment and storage medium
A code generation and code technology, applied in the computer field, can solve the problems of cumbersome process, inconvenient maintenance, code is not concise enough, etc., to achieve the effect of simple code reproduction, simplicity and maintainability
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0041] figure 1 It is a flowchart of a complete code generation method provided by Embodiment 1 of the present invention. This embodiment is applicable to the automatic generation of function module codes, and can be executed by a complete code generation device. The complete code generating device can be realized by means of software and / or hardware, and the complete code generating device is a computer, a mobile phone, a tablet, an interactive smart tablet, and the like. In one embodiment, a code editor or compiler is installed in the complete code generation device. In this embodiment, a computer is used as a complete code generation device and a compiler is installed as an example for description. This embodiment does not limit the functions realized by the functional module, and this embodiment uses dynamic permission application to describe in detail.
[0042] In this embodiment, the dynamic permissions at least include camera permissions, microphone permissions, locat...
Embodiment 2
[0065] figure 2 It is a flowchart of a complete code generation method provided by Embodiment 2 of the present invention. This embodiment is further refined on the basis of the above embodiments. In this embodiment, editing of code source files in a compiler is taken as an example for illustration , the compiler can search for target tags by integrating with the APT tool. refer to figure 2 , the method specifically includes the following steps S210-S260:
[0066] S210. Determine that a compilation instruction for the code source file is detected.
[0067] In this implementation, the compile instruction is a trigger instruction for the compiler to compile the code source file, which can be triggered by detecting that the user clicks the compile button set on the compiler, or by detecting the input of a shortcut key corresponding to the compile instruction.
[0068] This embodiment does not limit the generation time of the complete code, which may be generated after the com...
Embodiment 3
[0098] Figure 4 It is a schematic structural diagram of a complete code generation device provided by Embodiment 3 of the present invention. This embodiment is applicable to the automatic generation of function module codes, and specifically the function module can be used for dynamic permission application. refer to Figure 4 , the complete code generating device specifically includes: a target label identification module 310 , a target adding code generating module 320 , an adding position determining module 330 and a complete code acquiring module 340 .
[0099] The target tag identification module 310 is configured to perform identification processing on the code source file, and if it is determined that the target tag is identified in the code source file, obtain a standard template code matching the target tag.
[0100] The target adding code generation module 320 is configured to generate a target adding code corresponding to the target tag according to the standard ...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com