CN109117127A - Program code generation method, device and computer readable storage medium - Google Patents
Program code generation method, device and computer readable storage medium Download PDFInfo
- Publication number
- CN109117127A CN109117127A CN201810957773.7A CN201810957773A CN109117127A CN 109117127 A CN109117127 A CN 109117127A CN 201810957773 A CN201810957773 A CN 201810957773A CN 109117127 A CN109117127 A CN 109117127A
- Authority
- CN
- China
- Prior art keywords
- program code
- information
- program
- generation
- generation method
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
Abstract
The invention discloses a kind of program code generation method, device and computer readable storage mediums, the following steps are included: in the program code definition request for receiving terminal transmission, program code definition interfaces are generated, and said program code definition interfaces are sent to the terminal;When the program code for receiving the terminal transmission defines information, said program code is obtained to define information and save, wherein, said program code defines information by developer in said program code definition interfaces, by clicking addition parameter icons in said program code definition interfaces and input paramete information obtains in input frame;Information generation program code is defined according to said program code.Parameter required for capable of generating from program code is defined in interface because of the present invention simultaneously saves parameter to backstage, program code is generated according to the parameter from the background, to solve the problems, such as that existing program code can only be generated by configuration file.
Description
Technical field
The present invention relates to computer software fields more particularly to a kind of program code generation methods, device and computer
Readable storage medium storing program for executing.
Background technique
With the implementation of internet+policy, computer software industry development speed is greatly speeded up, and item order is increasingly
It is more.In program development, each program has a large amount of repeated code, and it is big that the code of these repeatability wastes developer
The development time of amount, and developer's error-prone when repeatedly writing the code of repetition row.Therefore it is needed when developing program
Template is used to generate the code of these repeatability.
But can only be completed by custom profile when the code of existing template generation repeatability, it is very not square
Just.
Above content is only used to facilitate the understanding of the technical scheme, and is not represented and is recognized that above content is existing skill
Art.
Summary of the invention
The main purpose of the present invention is to provide a kind of program code generation method, device and computer-readable storage mediums
Matter, it is intended to solve the problems, such as that existing program code can only be generated by configuration file.
In order to achieve the above object, the present invention provides a kind of program code generation method, said program code generation method
The following steps are included:
In the program code definition request for receiving terminal transmission, program code definition interfaces are generated, and by the journey
Sequence code definition interface is sent to the terminal;
When the program code for receiving the terminal transmission defines information, obtains said program code and define information and protect
It deposits, wherein said program code defines information by developer in said program code definition interfaces, by clicking the journey
Addition parameter icons in sequence code definition interface and input paramete information obtains in input frame;
Information generation program code is defined according to said program code.
Preferably, described the step of defining information generation program code according to said program code, includes:
Obtain said program code define information, by said program code define information coding be multiple binary numbers it is believed that
Breath;
Multiple binary data informations are translated into object information by transfer interpreter;
The object information is generated into corresponding program code by generator.
Preferably, the described the step of binary data information is translated to object information by transfer interpreter, includes:
Multiple binary data informations are saved into corresponding translation structure;
It is generation structure by multiple translation structure combinations;
The generation structure is translated into object information by transfer interpreter.
Preferably, the described the step of object information is generated corresponding program code by generator, includes:
Corresponding generation template is obtained according to the object information;
Corresponding program code is generated according to the generation template and the object information.
Preferably, said program code generation method further include:
The corresponding configuration file of said program code is obtained, and obtains the mesh of the preservation of the program code in the configuration file
Cursor position;
Said program code is saved in the target position, the prompt information that output program code building finishes.
Preferably, said program code generation method further include:
In the program code downloading request for receiving terminal transmission, obtains said program code downloading and request corresponding journey
Sequence code;
Said program code is compressed, program code compressed package is obtained;
Said program code compressed package is sent to the terminal.
Preferably, said program code generation method further include:
When receiving the parameter information template acquisition request of terminal transmission, it is corresponding to obtain the parameterized template acquisition request
Parameter information template;
The parameter information template is sent to the terminal.
In addition, to achieve the above object, the present invention also provides a kind of program code generating means, said program code is generated
Device includes that the program code that can run on the memory and on the processor of processor, memory and being stored in generates
Program, said program code generate the step that program code generation method as described above is realized when program is executed by the processor
Suddenly.
In addition, to achieve the above object, it is described computer-readable the present invention also provides a kind of computer readable storage medium
It is stored with program code on storage medium and generates program, said program code generates when program is executed by processor and realizes institute as above
The step of program code generation method stated.
Program code generation method, device and computer readable storage medium provided by the invention, firstly, receiving
When the program code that terminal is sent defines request, program code definition interfaces are generated, and said program code definition interfaces are sent out
It send to the terminal and when the program code for receiving the terminal transmission defines information, it is fixed then to obtain said program code
Adopted information simultaneously saves, wherein said program code defines information by developer in said program code definition interfaces, passes through
It clicks the addition parameter icons in said program code definition interfaces and input paramete information obtains in input frame, most
Afterwards, information generation program code is defined according to said program code.Institute is generated because the present invention can define program code from interface
The parameter that needs simultaneously saves parameter to backstage, program code is generated according to the parameter from the background, to solve existing journey
The problem of sequence code can only be generated by configuration file.
Detailed description of the invention
Detailed description of the invention is used to provide further understanding of the present invention, and constitutes part of specification, with the present invention
Embodiment be used to explain the present invention together, be not construed as limiting the invention.In the accompanying drawings:
Fig. 1 is the hardware structural diagram for the program code generating means that the embodiment of the present invention is related to;
Fig. 2 is the flow diagram of present procedure code generating method first embodiment;
Fig. 3 is the flow diagram of present procedure code generating method second embodiment;
Fig. 4 is the flow diagram of present procedure code generating method 3rd embodiment;
Fig. 5 is the flow diagram of present procedure code generating method fourth embodiment;
Fig. 6 is the flow diagram of the 5th embodiment of present procedure code generating method;
Fig. 7 is the flow diagram of present procedure code generating method sixth embodiment;
Fig. 8 is the flow diagram of the 7th embodiment of present procedure code generating method.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
The primary solutions of the embodiment of the present invention are: raw in the program code definition request for receiving terminal transmission
The terminal is sent at program code definition interfaces, and by said program code definition interfaces;Receiving the terminal hair
It when the program code sent defines information, obtains said program code and defines information and save, wherein said program code definition letter
Breath in said program code definition interfaces, passes through the addition parameter in click said program code definition interfaces by developer
Icon and input paramete information obtains in input frame;Information generation program code is defined according to said program code.
Due to the generation of the existing code that can only carry out repeatability by configuration file, program code generation is caused to be compared
It is loaded down with trivial details.
The present invention provides a solution, firstly, developer in said program code definition interfaces, passes through click
Addition parameter icons in said program code definition interfaces and to obtain program code fixed for input paramete information in input frame
Adopted information;Then, said program code is defined information and is uploaded to server by terminal, and server, which defines said program code, to be believed
Breath is saved to database;Finally, said program code is defined information translation into object information by server, believed according to the object
Breath generates program code.Parameter required for capable of generating from program code is defined in interface because of the present invention simultaneously saves parameter to rear
Platform generates program code according to the parameter from the background and mentions to improve efficiency of the user when carrying out program code parameter definition
High user experience.
As shown in Figure 1, Fig. 1 is that the embodiment of the present invention is related to the hardware structural diagram of device.
Referring to Fig.1, the apparatus may include processor 1001, such as CPU, memory 1002, communication bus 1003, nets
Network interface 1004.Wherein, communication bus 1003 is for realizing the connection communication between each building block in the device.Network interface
1004 may include optionally standard wireline interface and wireless interface (such as WI-FI interface).Memory 1002 can be high speed
RAM memory is also possible to stable memory (non-volatile memory), such as magnetic disk storage.Memory 1002
It optionally can also be the storage device independently of aforementioned processor 1001.As shown in Figure 1, as a kind of computer storage medium
Memory 1002 in may include that operating system, network communication module and program code generate program.
It will be understood by those skilled in the art that the restriction of the not structure twin installation of apparatus structure shown in Fig. 1, can wrap
It includes than illustrating more or fewer components, perhaps combines certain components or different component layouts.
In hardware involved in device shown in Fig. 1, network interface 1004 can be used for receiving mobile terminal transmission
Program code defines information, then defines information generation program code according to said program code, finally by said program code
It saves to target storage position;And processor 1001 can be used for that the program code stored in memory 1002 is called to generate journey
Sequence, and execute following operation:
In the program code definition request for receiving terminal transmission, program code definition interfaces are generated, and by the journey
Sequence code definition interface is sent to the terminal;
When the program code for receiving the terminal transmission defines information, obtains said program code and define information and protect
It deposits, wherein said program code defines information by developer in said program code definition interfaces, by clicking the journey
Addition parameter icons in sequence code definition interface and input paramete information obtains in input frame;
Information generation program code is defined according to said program code.
Further, processor 1001 can be used for that the program code stored in memory 1002 is called to generate program, also
Execute following operation:
Obtain said program code define information, by said program code define information coding be multiple binary numbers it is believed that
Breath;
Multiple binary data informations are translated into object information by transfer interpreter;
The object information is generated into corresponding program code by generator.
Further, processor 1001 can be used for that the program code stored in memory 1002 is called to generate program, also
Execute following operation:
Multiple binary data informations are saved into corresponding translation structure;
It is generation structure by multiple translation structure combinations;
The generation structure is translated into object information by transfer interpreter.
Further, processor 1001 can be used for that the program code stored in memory 1002 is called to generate program, also
Execute following operation:
Corresponding generation template is obtained according to the object information;
Corresponding program code is generated according to the generation template and the object information.
Further, processor 1001 can be used for that the program code stored in memory 1002 is called to generate program, also
Execute following operation:
The corresponding configuration file of said program code is obtained, and obtains the mesh of the preservation of the program code in the configuration file
Cursor position;
Said program code is saved in the target position, the prompt information that output program code building finishes.
Further, processor 1001 can be used for that the program code stored in memory 1002 is called to generate program, also
Execute following operation:
In the program code downloading request for receiving terminal transmission, obtains said program code downloading and request corresponding journey
Sequence code;
Said program code is compressed, program code compressed package is obtained;
Said program code compressed package is sent to the terminal.
Further, processor 1001 can be used for that the program code stored in memory 1002 is called to generate program, also
Execute following operation:
When receiving the parameter information template acquisition request of terminal transmission, it is corresponding to obtain the parameterized template acquisition request
Parameter information template;
The parameter information template is sent to the terminal.
In the program code definition request for receiving terminal transmission, program code definition interfaces are generated, and by the journey
Sequence code definition interface is sent to the terminal;
When the program code for receiving the terminal transmission defines information, obtains said program code and define information and protect
It deposits, wherein said program code defines information by developer in said program code definition interfaces, by clicking the journey
Addition parameter icons in sequence code definition interface and input paramete information obtains in input frame;
Information generation program code is defined according to said program code.
The present invention is according to above scheme, and after user login validation success, terminal jumps to program code and defines homepage, user
After clicking the code custom button in homepage, terminal to server sends program code definition request.Server is receiving
When the program code that terminal is sent defines request, program code definition interfaces are generated, and said program code definition interfaces are sent out
It send to the terminal, terminal shows the interface, Yong Hu after receiving the said program code definition interfaces that server is sent
After having added all parameters in the interface, export button is clicked, terminal to server sends program code and defines information.Service
Device obtains said program code and defines information and save when the program code for receiving the terminal transmission defines information,
In, said program code defines information by developer in said program code definition interfaces, by clicking described program generation
Addition parameter icons in code definition interfaces and input paramete information obtains in input frame.Server is according to described program
Code definition information generation program code obtains the target position that program code described in configuration file saves, finally will be described
Program code is saved to the target position.
It is the first embodiment of present procedure code generating method, said program code generation method referring to Fig. 2, Fig. 2
Include:
Step S10, in the program code definition request for receiving terminal transmission, program code definition interfaces are generated, and
Said program code definition interfaces are sent to the terminal;
Program code generation method provided by the invention is mainly used for automatically generating in generation program development related with program
Repeated code.The terminal that the correlating method of house property information provided by the invention is related to includes but is not limited to mobile phone, plate electricity
Brain and computer etc. are pre-loaded with relevant application system, including but not limited to APP or Web page system etc. in the terminal.
Technical solution provided by the invention, after user login validation success, terminal jumps to program code and defines homepage, uses
After the code custom button in homepage is clicked at family, terminal to server sends program code definition request.Server is receiving
When the program code sent to terminal defines request, the interface description letter for generating program code definition interfaces is obtained from database
Breath and styles information, according to the interface description information and styles information generation program code definition circle
Face, and said program code definition interfaces are sent to the terminal.It is understood that server can also be directly from project
Said program code definition interfaces are directly acquired under file directory.
It should be noted that said program code definition interfaces include data structure, standard interface, project maintenance and life
At four primary buttons of engineering, four primary buttons contain corresponding parameter setting page, in four primary buttons
It is below parameter setting page display area, when the user clicks when the button of data structure, parameter setting page display area is aobvious
Show the corresponding parameter setting page of the data structure button.And parameter setting page display area is divided into two parts, the left side
Part is preview region, and the content of preview region predominantly generates doc button, refreshes doc button and imports oom file button,
The lower section of these three buttons is the displaying of doc file.The partial maintenance area on the right, main contents be addition self attributes button,
Add data set button and refresh button.It is the displaying for the parameter added below these three buttons.
Step S20, when the program code for receiving the terminal transmission defines information, said program code definition is obtained
Information simultaneously saves, wherein said program code defines information by developer in said program code definition interfaces, passes through a little
The addition parameter icons hit in said program code definition interfaces and input paramete information obtains in input frame;
In technical solution provided in this embodiment, developer clicks the journey in said program code definition interfaces
After addition self attributes button in sequence code definition interface, terminal pops up the window of an addition parameter, and the window includes
Parameter name, parameter coding, parameter annotation, table name and whether be target switch button, developer is in the pop-up
It inputs information and clicks the program code obtained after addition button and define information, it is fixed that terminal to server sends said program code
Adopted information, server obtain said program code definition letter when the program code for receiving the terminal transmission defines information
It ceases and saves.
Further, it includes: project information that developer, which needs the content defined in the parameter for being defined new projects,
(project), data structure (model), field module (module).When defining project information, item class is mainly defined
This project is briefly described in type, such as Web, Mobile, saves the essential information of the project, finally by the item of definition
Mesh information is stored to corresponding database table.In definition data structure, mainly defined item purpose table structure, according to project need
File, the section essential information and type of the database table field that creation project needs etc. are asked, finally by the data structure of definition
Information is stored to corresponding database table.When defining field module, the foreground (Flex+ in the module of field is mainly defined
As3), backstage (java), request path (FPI), configuration file (Yaml).When defining foreground, mainly define page view,
Business operation order, operational order monitor and request path.When defining backstage mainly define control layer, service layer with
And data operation layer.When defining request path, the essential information of request path is mainly defined, project demands are mainly defined
For the path of different function requests, required page field information and parameter information, then by the path, page word
Section and parameter information are stored to corresponding database table.When defining configuration file, the number of special structure is mainly defined
According to allowing backstage parsing quickly generating corresponding data, not needing excessive cumbersome definition field, wherein the special structure
It can be the structures such as Hash table, figure.
Step S30, information generation program code is defined according to said program code.
In technical solution provided in this embodiment, terminal to server sends said program code and defines information, server
When the program code for receiving the terminal transmission defines information, obtains said program code and define information and save.Service
Device obtains the generation program code request in the database and corresponds in the generation program code request for receiving terminal transmission
Program code define information, then transferring interpreter, that the storage organization for needing to be implemented conversion is construed to computer is identifiable
Binary data recalls transfer interpreter for binary data and translates to one to generate the object letter that structure is present in memory
Breath obtains corresponding code building template further according to the object information, recalls generator according to the code building template
And the object information generates program code, the target save location of the program code in configuration file is finally obtained, by institute
Program code is stated to save to the target save location.
The present invention is according to above scheme, and after user login validation success, terminal jumps to program code and defines homepage, user
After clicking the code custom button in homepage, terminal to server sends program code definition request.Server is receiving
When the program code that terminal is sent defines request, program code definition interfaces are generated, and said program code definition interfaces are sent out
It send to the terminal, terminal shows the interface, Yong Hu after receiving the said program code definition interfaces that server is sent
After having added all parameters in the interface, export button is clicked, terminal to server sends program code and defines information.Service
Device obtains said program code and defines information and save when the program code for receiving the terminal transmission defines information,
In, said program code defines information by developer in said program code definition interfaces, by clicking described program generation
Addition parameter icons in code definition interfaces and input paramete information obtains in input frame.Server is according to described program
Code definition information generation program code obtains the target position that program code described in configuration file saves, finally will be described
Program code is saved to the target position.Parameter required for capable of generating from program code is defined in interface because of the present invention simultaneously will
Parameter is saved to backstage, program code is generated according to the parameter from the background, so that solving existing program code can only pass through
The problem of configuration file is generated.
Further, it is the second embodiment of present procedure code generating method referring to Fig. 3, Fig. 3, is based on above-mentioned implementation
Example, the step S30, comprising:
Step S31, obtain said program code define information, by said program code define information coding be multiple two into
Data information processed;
Step S32, multiple binary data informations are translated to by object information by transfer interpreter;
Step S33, the object information is generated into corresponding program code by generator.
In technical solution provided in this embodiment, after user has defined all parameter informations required for generating code, point
Generation button code is hit, terminal to server issues program code and generates request.Server is receiving said program code life
When at request, obtains said program code generation and corresponding program code is requested to define information.Specifically, server is inquired first
All spectra module, database table under the project and all data structures and configuration file under the module of field, wherein
All data structures under the module of field include control layer, service layer, data analysis layer, view layer, Flex service layer, are being inquired
When the information of Shi Suoshu data structure, such as inquiry control layer, according to structure essential information, side required for control layer structure
Method, method parameter, reference field information, the service layer of reference goes to be associated in tables of data evidence of fetching, the tables of data packet
Include entity table, method table and reference list.Further, it in the data of query configuration file (Yaml format), needs to pass through
The Yaml format that configuration file parsing plug-in unit parsing foreground defines, gets the parameter information that Yaml is parsed, will be described
Parameter information is added in corresponding tables of data.It, will be described after having inquired all parameter informations for generating program code needs
Parameter information is encoded to binary data information, recalls transfer interpreter for multiple binary data informations and translates to object letter
Breath, finally generates corresponding program code by generator for the object information.
The process of code generating method is divided into three parts, reduces the coupling of program, can in the reply variation of any link
To accomplish the respective logical code of relatively independent adjustment, without polluting other links.Each section core logic separation and mutually
It is independent, to accomplish in reply variable factor with the smallest cost completing technology iteration.
Further, referring to Fig. 4, Fig. 4 is the 3rd embodiment of present procedure code generating method, in above-mentioned Fig. 3 institute
On the basis of the embodiment shown, the step S32, comprising:
Step S321, multiple binary data informations are saved into corresponding translation structure;
It step S322, is generation structure by multiple translation structure combinations;
Step S323, the generation structure is translated to by object information by transfer interpreter.
In technical solution provided in this embodiment, server is inquiring all parameter informations for generating program code and needing
Afterwards, the parameter information is encoded to binary data information.All data structures obtained under every field module are corresponding
Structure is translated, the multiple binary data informations inquired are saved into the translation structure, then by multiple described turns
Structure combination is translated to generate structure, the generation structure is translated into object information finally by transfer interpreter.Wherein, the object
Information stores all parameter informations required for code building.
It the program code inquired is defined into information is converted to program object information and save, to facilitate generator tune
The generation of program code is carried out with the object.
Further, referring to Fig. 5, Fig. 5 is the fourth embodiment of present procedure code generating method, in above-mentioned Fig. 3 institute
On the basis of the embodiment shown, the step S33, comprising:
Step S331, corresponding generation template is obtained according to the object information;
Step S332, corresponding program code is generated according to the generation template and the object information.
In technical solution provided in this embodiment, the generation structure is translated to object information by transfer interpreter by server
Afterwards, the item types information in object information is obtained, according to the corresponding code building template of the item types acquisition of information, most
Call generator that the parameter information in object information is added to the corresponding position of the code building template afterwards, in object information
After all parameter informations are added to code building template, program code is obtained.
By calling generator according to object information and the corresponding program code of code building template generation, generation is improved
Code formation efficiency.
Further, referring to Fig. 6, Fig. 6 is the 5th embodiment of present procedure code generating method, in above-mentioned Fig. 2 institute
On the basis of the embodiment shown, after the step S30, further includes:
Step S40, the corresponding configuration file of said program code is obtained, and obtains the program code in the configuration file
The target position of preservation;
Step S50, said program code is saved in the target position, the prompt letter that output program code building finishes
Breath.
In technical solution provided in this embodiment, server is by calling generator according to object information and code building
After the corresponding program code of template generation, the corresponding configuration file of said program code is obtained, and obtain in the configuration file
Program code save target position, said program code is saved in the target position, output program code building is complete
Complete prompt information.It is understood that exporting the prompt information can also be can be transmitted by wechat small routine pushed information
Short message is reminded.
Said program code is saved to target save location after program code generation, output prompt letter after preservation
Breath, to facilitate developer, downloading said program code carries out the secondary development for being absorbed in business at the first time.
Further, referring to Fig. 7, Fig. 7 is the sixth embodiment of present procedure code generating method, in above-mentioned Fig. 2 institute
On the basis of the embodiment shown, after the step S30, further includes:
Step S60, in the program code downloading request for receiving terminal transmission, said program code downloading request is obtained
Corresponding program code;
Step S70, said program code is compressed, obtains program code compressed package;
Step S80, said program code compressed package is sent to the terminal.
In technical solution provided in this embodiment, developer clicks after receiving program code generation and finishing notice
Download button, terminal to server send program code downloading request, and server is under the program code for receiving terminal transmission
When carrying request, obtains said program code downloading and request corresponding program code.Then said program code is compressed, is obtained
To program code compressed package, said program code compressed package is finally sent to the terminal.
Server carries out compression to program code and retransmits to the terminal, so that transmitting efficiency is improved, when saving transmission
Between.
It further, is that the present invention is based on the 7th embodiments of the measures and procedures for the examination and approval of task suspension referring to Fig. 8, Fig. 8, above-mentioned
On the basis of embodiment shown in Fig. 2, before the step S20, further includes:
Step S90, it when receiving the parameter information template acquisition request of terminal transmission, obtains the parameterized template and obtains
Request corresponding parameter information template;
Step S100, the parameter information template is sent to the terminal.
In technical solution provided in this embodiment, developer has found the demand of off-the-shelf item after project demands analysis
When identical as original project demands, the generated program code of the original project of downloading may be selected.Terminal to server sends ginseng
Number information model acquisition request, server obtain the ginseng when receiving the parameter information template acquisition request of terminal transmission
The corresponding parameter information template of digital-to-analogue plate acquisition request finally sends the parameter information template to the terminal.
To achieve the above object, the present invention also provides a kind of program code generating means, said program code generating means
Including processor, memory and it is stored in the program code that can be run on the memory and on the processor generation journey
Sequence, said program code generate the step that program code generation method as described above is realized when program is executed by the processor
Suddenly.
To achieve the above object, the present invention also provides a kind of computer readable storage medium, the computer-readable storages
It is stored with program code on medium and generates program, said program code is generated when program is executed by processor and realized as described above
The step of program code generation method.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row
His property includes, so that the process, method, article or the system that include a series of elements not only include those elements, and
And further include other elements that are not explicitly listed, or further include for this process, method, article or system institute it is intrinsic
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do
There is also other identical elements in the process, method of element, article or system.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art
The part contributed out can be embodied in the form of software products, which is stored in one as described above
In storage medium (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal device (can be TV
Machine, mobile phone, computer, device, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair
Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills
Art field, is included within the scope of the present invention.
Claims (9)
1. a kind of program code generation method, which is characterized in that said program code generation method the following steps are included:
In the program code definition request for receiving terminal transmission, program code definition interfaces are generated, and by described program generation
Code definition interfaces are sent to the terminal;
When the program code for receiving the terminal transmission defines information, obtains said program code and defines information and save,
Wherein, said program code defines information by developer in said program code definition interfaces, by clicking described program
Addition parameter icons in code definition interface and input paramete information obtains in input frame;
Information generation program code is defined according to said program code.
2. program code generation method as described in claim 1, which is characterized in that described defined according to said program code is believed
Ceasing the step of generating program code includes:
It obtains said program code and defines information, it is multiple binary data informations that said program code, which is defined information coding,;
Multiple binary data informations are translated into object information by transfer interpreter;
The object information is generated into corresponding program code by generator.
3. program code generation method as claimed in claim 2, which is characterized in that it is described by transfer interpreter by the binary system
Data information translates to the step of object information and includes:
Multiple binary data informations are saved into corresponding translation structure;
It is generation structure by multiple translation structure combinations;
The generation structure is translated into object information by transfer interpreter.
4. program code generation method as claimed in claim 2, which is characterized in that described that the object information is passed through generation
Device generate corresponding program code the step of include:
Corresponding generation template is obtained according to the object information;
Corresponding program code is generated according to the generation template and the object information.
5. program code generation method as described in claim 1, which is characterized in that said program code generation method is also wrapped
It includes:
The corresponding configuration file of said program code is obtained, and obtains the target position of the preservation of the program code in the configuration file
It sets;
Said program code is saved in the target position, the prompt information that output program code building finishes.
6. program code generation method as described in claim 1, which is characterized in that said program code generation method is also wrapped
It includes:
In the program code downloading request for receiving terminal transmission, obtains said program code downloading and request corresponding program generation
Code;
Said program code is compressed, program code compressed package is obtained;
Said program code compressed package is sent to the terminal.
7. program code generation method as described in claim 1, which is characterized in that said program code generation method is also wrapped
It includes:
When receiving the parameter information template acquisition request of terminal transmission, the corresponding ginseng of the parameterized template acquisition request is obtained
Number information model;
The parameter information template is sent to the terminal.
8. a kind of program code generating means, which is characterized in that said program code generating means include processor, memory and
The program code that being stored in can run on the memory and on the processor generates program, and said program code generates journey
The step of program code generation method as described in any one of claims 1 to 7 is realized when sequence is executed by the processor.
9. a kind of computer readable storage medium, which is characterized in that be stored with program generation on the computer readable storage medium
Code generates program, and said program code is generated when program is executed by processor and realized as described in any one of claims 1 to 7
The step of program code generation method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810957773.7A CN109117127A (en) | 2018-08-21 | 2018-08-21 | Program code generation method, device and computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810957773.7A CN109117127A (en) | 2018-08-21 | 2018-08-21 | Program code generation method, device and computer readable storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109117127A true CN109117127A (en) | 2019-01-01 |
Family
ID=64853469
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810957773.7A Pending CN109117127A (en) | 2018-08-21 | 2018-08-21 | Program code generation method, device and computer readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109117127A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109871289A (en) * | 2019-02-01 | 2019-06-11 | 北京顺丰同城科技有限公司 | A kind of remote procedure call service creation method and device |
CN111240677A (en) * | 2020-01-13 | 2020-06-05 | 浙江吉利汽车研究院有限公司 | Robot visual interface generation method and device and computer storage medium |
CN111324394A (en) * | 2020-01-23 | 2020-06-23 | 北京恒华伟业科技股份有限公司 | System integration method and device |
CN111857679A (en) * | 2019-04-29 | 2020-10-30 | 西门子(中国)有限公司 | Method and device for generating script program and script program processing system |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101192143A (en) * | 2006-12-01 | 2008-06-04 | 上海亚伦科技有限公司 | Software interface construction method |
CN102750152A (en) * | 2012-06-21 | 2012-10-24 | 新浪网技术(中国)有限公司 | Method and device of application for generating a plurality of programming languages based on descriptive language |
CN102981855A (en) * | 2012-11-23 | 2013-03-20 | 蓝盾信息安全技术股份有限公司 | Template-based interface autogeneration method and system |
CN106250147A (en) * | 2016-07-29 | 2016-12-21 | 北京北信源软件股份有限公司 | application development management method and device |
CN106951248A (en) * | 2017-03-16 | 2017-07-14 | 网易(杭州)网络有限公司 | Add method, device and the readable storage medium storing program for executing of code |
CN107506182A (en) * | 2017-07-27 | 2017-12-22 | 努比亚技术有限公司 | Software layout method, software merit rating device and computer-readable recording medium |
-
2018
- 2018-08-21 CN CN201810957773.7A patent/CN109117127A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101192143A (en) * | 2006-12-01 | 2008-06-04 | 上海亚伦科技有限公司 | Software interface construction method |
CN102750152A (en) * | 2012-06-21 | 2012-10-24 | 新浪网技术(中国)有限公司 | Method and device of application for generating a plurality of programming languages based on descriptive language |
CN102981855A (en) * | 2012-11-23 | 2013-03-20 | 蓝盾信息安全技术股份有限公司 | Template-based interface autogeneration method and system |
CN106250147A (en) * | 2016-07-29 | 2016-12-21 | 北京北信源软件股份有限公司 | application development management method and device |
CN106951248A (en) * | 2017-03-16 | 2017-07-14 | 网易(杭州)网络有限公司 | Add method, device and the readable storage medium storing program for executing of code |
CN107506182A (en) * | 2017-07-27 | 2017-12-22 | 努比亚技术有限公司 | Software layout method, software merit rating device and computer-readable recording medium |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109871289A (en) * | 2019-02-01 | 2019-06-11 | 北京顺丰同城科技有限公司 | A kind of remote procedure call service creation method and device |
CN111857679A (en) * | 2019-04-29 | 2020-10-30 | 西门子(中国)有限公司 | Method and device for generating script program and script program processing system |
CN111857679B (en) * | 2019-04-29 | 2024-03-15 | 西门子(中国)有限公司 | Method and device for generating script program and script program processing system |
CN111240677A (en) * | 2020-01-13 | 2020-06-05 | 浙江吉利汽车研究院有限公司 | Robot visual interface generation method and device and computer storage medium |
CN111240677B (en) * | 2020-01-13 | 2023-09-05 | 浙江吉利汽车研究院有限公司 | Method and device for generating visual interface of robot and computer storage medium |
CN111324394A (en) * | 2020-01-23 | 2020-06-23 | 北京恒华伟业科技股份有限公司 | System integration method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109117127A (en) | Program code generation method, device and computer readable storage medium | |
US10284705B2 (en) | Method and apparatus for controlling smart device, and computer storage medium | |
US8543972B2 (en) | Gateway data distribution engine | |
EP3731161A1 (en) | Model application method and system, and model management method and server | |
CN1992635B (en) | Method of simulating SNMP network element and performing network management system test with the network element | |
CN109725901A (en) | Development approach, device, equipment and the computer storage medium of front-end code | |
CN102447585B (en) | Method and device for converting network configuration protocol response message into command line | |
US20120011447A1 (en) | Facilitating propagation of user interface patterns or themes | |
CN108279882B (en) | Framework generation method, device, equipment and computer readable medium | |
CN108023918A (en) | A kind of information on services acquisition methods, apparatus and system | |
CN115640045B (en) | Low-code development platform based on domain-driven design and business system creation method | |
CN103645908A (en) | Full life circle development achievement system of intemetware | |
CN103078920A (en) | Online information verification system based on international electrotechnical commission (IEC) 61968 enterprise service bus (ESB) | |
CN109145027A (en) | Data statistical approach, device, equipment and computer readable storage medium | |
CN110535928A (en) | A kind of event method for pushing of the JAVA intelligence contract of block chain | |
CN103561113A (en) | Web Service interface generating method and device | |
CN104461893A (en) | Data processing method and data processing device | |
WO2017045345A1 (en) | Resource management method and apparatus, and multi-mode soft base station unified network management | |
CN110264035A (en) | Configuration method, device, terminal and the storage medium of workflow | |
Bertrand-Martínez et al. | A Methodology for Classification and Evaluation of IoT Brokers. | |
Tamayo et al. | Dealing with large schema sets in mobile SOS-based applications | |
CN103139806B (en) | Method and base station of the webmaster with base station configuration data decoupling | |
US20130031116A1 (en) | Modeled business object data import | |
CN112988879A (en) | Method, system, device, storage medium and processor for accessing database | |
CN110659060A (en) | In-place distributed FA configuration rapid configuration method and system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
AD01 | Patent right deemed abandoned |
Effective date of abandoning: 20221230 |
|
AD01 | Patent right deemed abandoned |