CN106528165A - Code generation method and code generation system - Google Patents
Code generation method and code generation system Download PDFInfo
- Publication number
- CN106528165A CN106528165A CN201611041979.2A CN201611041979A CN106528165A CN 106528165 A CN106528165 A CN 106528165A CN 201611041979 A CN201611041979 A CN 201611041979A CN 106528165 A CN106528165 A CN 106528165A
- Authority
- CN
- China
- Prior art keywords
- code
- content
- building template
- mark
- difference
- 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.)
- Granted
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
-
- 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
- G06F8/33—Intelligent editors
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Stored Programmes (AREA)
Abstract
The invention provides a code generation method and a code generation system. The code generation method comprises obtaining a target sample code, and creating a code generation template in dependence on the target sample code, the code generation template including a different content replacing identification and a sharing content; determining the fill content corresponding to the different content replacing identification when a code generation instruction is received, and filling the different content replacing identification with the fill content in order to obtain a processed code generation template; and generating the code in dependence on the processed code generation template. According to technical scheme, the code can be generated based on the created code generation template, the code exploitation efficiency can be effectively improved, and the code normativity and correctness can be ensured.
Description
Technical field
The present invention relates to field of computer technology, in particular to a kind of code generating method and a kind of code building
System.
Background technology
In correlation technique, during Project-developing, generally there are the configuration item of many repetitions, such as iBatis configuration texts
Part, Hibernate configuration files, Struts, Spring, XML (Extensible markup Language, extensible markup
Language) configuration etc., general way is, in manual newly-built configuration file, to replicate unified XSD (the XML Schemas of XML
Definition, XML structure definition) definition of specification head, then according to standard criterion creates node configuration information.This manual wound
There is following defect in the mode for building configuration file:
1st, artificial hand-coding Documents Comparison trouble and also easily malfunction, and different people be likely to form it is a set of oneself
Coding style, causes code follow Unified coding specification, takes a substantial amount of time in follow-up debugging and running;
2nd, for database table to entity class object, data access, interface etc. have a large amount of repeated encoding processes, to each
The exploitation of individual process is required for carrying out code check, and compiling debugging reduces development efficiency.
For the problems referred to above, effective solution is there is presently no.
The content of the invention
The present invention is based at least one above-mentioned technical problem, it is proposed that a kind of new code building scheme, can be based on
The code building template generation code of establishment, effectively improves the development efficiency of code, and guarantees the standardization and just of code
True property.
In view of this, the present invention proposes a kind of code generating method, including:Target sample row code is obtained, and according to institute
Target sample code establishing code building template is stated, wherein, include difference content in the code building template and replace mark
With shared content;When the instruction for generating code is received, determine that the difference content replaces the corresponding filling content of mark, and
Mark is replaced to the difference content using the filling content to be filled, with the code building template after being processed;Root
According to code described in the code building template generation after the process.
In the technical scheme, by the target sample code that gets, (target sample code can be that user compiles in advance
The sample code finished writing or selected sample code) code building template is created, when the instruction for generating code is received, it is determined that
Difference content in code building template replaces the corresponding filling content of mark, and difference content replacement is marked using filling content
Knowledge is filled, with according to the code building template generation code after process so that in code generation process, based on code building
Template, is filled the i.e. achievable code of replacement and automatically generates to difference content, and without the need for user, writing for repeatability is matched somebody with somebody manually
Put file, it is ensured that the standardization of the code of generation, accuracy, effectively improve the development efficiency of code.
In above-mentioned technical proposal, it is preferable that the step according to the target sample code establishing code building template
Suddenly, specifically include:Difference content and shared content are extracted from the target sample code;Based on the difference content and institute
Shared content is stated, the code building template is created;Wherein, used in the code building template, the difference content is replaced
Difference content described in mark for marking.
In the technical scheme, difference content is extracted from target sample code and shared content (specifically, can pass through
Velocity template engines can also pass through processing to target sample code, certainly Freemarker template engines or its
He is processed to target sample code self-defined template engine), and difference content and shared content are based on, create code building
Template, it is ensured that the establishment efficiency of code building template.Wherein, difference content is referred in coding process is generated needs to change, adjusts
Whole content, shared content refer to some contents that are shared, need not changing in coding process is generated.
In any of the above-described technical scheme, it is preferable that the difference content replaces mark includes placeholder.
In any of the above-described technical scheme, it is preferable that also include:In the generation according to the target sample code establishing
During code generates template, judge whether the code building template needs to be associated with target database;It is determined that described
When code building template need to be associated with the target database, it is target database described in the code building template configuration, its
In, it is stored with the target database and the filling content of mark is replaced for filling the difference content;It is determined that the generation
When code generation template is not required to associate with the target database, it is configured to fill in the filling that the difference content replacement is identified
Hold the incidence relation that mark is replaced with the difference content.
In the technical scheme, during the establishment of code building template, can according to code building template whether need with
The judged result that target database is associated is being further determined as code building template configuration target database or difference
Content replaces the incidence relation of mark and filling content, meets different configuration needs.
In any of the above-described technical scheme, it is preferable that described to determine that the difference content replaces the corresponding filling of mark
The step of content, specifically include:According to the target database or the incidence relation, determine that the difference content replaces mark
Corresponding filling content.
In the technical scheme, when it is determined that difference content replacement identifies corresponding filling content, can be from data base
Search, can be being searched according to incidence relation, it is ensured that can correctly find corresponding filling content, be follow-up code
Offer premise guarantee is be provided.
In any of the above-described technical scheme, it is preferable that described to instruct the storing path for including the code, the code
Generation method also includes:Storing path according to the code is preserved to the code.
In the technical scheme, code can be preserved according to the storing path of code, be easy to user to search and manage
Code.
According to the second aspect of the invention, it is proposed that a kind of code generating system, including:Template generation unit, for obtaining
Target sample row code is taken, and according to the target sample code establishing code building template, wherein, in the code building template
Include difference content and replace mark and shared content;Determining unit, for when the instruction for generating code is received, determining institute
State difference content and replace the corresponding filling content of mark;Fills unit, for using it is described filling content to the difference content
Replace mark to be filled, with the code building template after being processed;Code generating unit, after according to the process
Code described in code building template generation.
In the technical scheme, by the target sample code that gets, (target sample code can be that user compiles in advance
The sample code finished writing or selected sample code) code building template is created, when the instruction for generating code is received, it is determined that
Difference content in code building template replaces the corresponding filling content of mark, and difference content replacement is marked using filling content
Knowledge is filled, with according to the code building template generation code after process so that in code generation process, based on code building
Template, is filled the i.e. achievable code of replacement and automatically generates to difference content, and without the need for user, writing for repeatability is matched somebody with somebody manually
Put file, it is ensured that the standardization of the code of generation, accuracy, effectively improve the development efficiency of code.
In above-mentioned technical proposal, it is preferable that the template generation unit specifically for:From the target sample code
Extract difference content and shared content;Based on the difference content and the shared content, the code building template is created;
Wherein, used in the code building template, the difference content replaces difference content described in mark for marking.
In the technical scheme, difference content is extracted from target sample code and shared content (specifically, can pass through
Velocity template engines can also pass through processing to target sample code, certainly Freemarker template engines or its
He is processed to target sample code self-defined template engine), and difference content and shared content are based on, create code building
Template, it is ensured that the establishment efficiency of code building template.Wherein, difference content is referred in coding process is generated needs to change, adjusts
Whole content, shared content refer to some contents that are shared, need not changing in coding process is generated.
In any of the above-described technical scheme, it is preferable that the difference content replaces mark includes placeholder.
In any of the above-described technical scheme, it is preferable that also include:Judging unit, for according to the target sample
During code building template described in code establishing, judge whether the code building template needs to be closed with target database
Connection;Dispensing unit, for when the judging unit determines that the code building template need to be associated with the target database, being
Target database described in the code building template configuration, wherein, it is stored with the target database for filling the difference
Different content replaces the filling content of mark, and determines that the code building template is not required to and the target in the judging unit
During database association, it is configured to fill filling content and the difference content replacement mark that the difference content replaces mark
Incidence relation.
In the technical scheme, during the establishment of code building template, can according to code building template whether need with
The judged result that target database is associated is being further determined as code building template configuration target database or difference
Content replaces the incidence relation of mark and filling content, meets different configuration needs.
In any of the above-described technical scheme, it is preferable that the determining unit specifically for:According to the target database
Or the incidence relation, determine that the difference content replaces the corresponding filling content of mark.
In the technical scheme, when it is determined that difference content replacement identifies corresponding filling content, can be from data base
Search, can be being searched according to incidence relation, it is ensured that can correctly find corresponding filling content, be follow-up code
Offer premise guarantee is be provided.
In any of the above-described technical scheme, it is preferable that described to instruct the storing path for including the code, the code
Generation system also includes:Memory element, for preserving to the code according to the storing path of the code.
In the technical scheme, code can be preserved according to the storing path of code, be easy to user to search and manage
Code.
By above technical scheme, opening for code can be effectively improved based on the code building template generation code for creating
Efficiency is sent out, and guarantees the standardization and correctness of code.
Description of the drawings
Fig. 1 shows the schematic flow diagram of code generating method according to an embodiment of the invention;
Fig. 2 shows the schematic block diagram of code generating system according to an embodiment of the invention;
Fig. 3 shows the schematic block diagram of code generating system according to another embodiment of the invention;
Fig. 4 shows the schematic flow diagram of the exchange method of unit in the code generating system in Fig. 3.
Specific embodiment
It is in order to be more clearly understood that the above objects, features and advantages of the present invention, below in conjunction with the accompanying drawings and concrete real
Apply mode to be further described in detail the present invention.It should be noted that in the case where not conflicting, the enforcement of the application
Feature in example and embodiment can be mutually combined.
Many details are elaborated in the following description in order to fully understand the present invention, but, the present invention may be used also
Implemented with being different from other modes described here using other, therefore, protection scope of the present invention is not by described below
Specific embodiment restriction.
Fig. 1 shows the schematic flow diagram of code generating method according to an embodiment of the invention.
As shown in figure 1, code generating method according to an embodiment of the invention, including:
Step 102, obtains target sample row code, and according to the target sample code establishing code building template, wherein,
Include difference content in the code building template and replace mark and shared content.
Step 104, when the instruction for generating code is received, determines that the difference content is replaced in the corresponding filling of mark
Hold, and mark is replaced to the difference content using the filling content and be filled, with the code building mould after being processed
Plate.
Step 106, the code according to the code building template generation after the process.
In the technical scheme, by the target sample code that gets, (target sample code can be that user compiles in advance
The sample code finished writing or selected sample code) code building template is created, when the instruction for generating code is received, it is determined that
Difference content in code building template replaces the corresponding filling content of mark, and difference content replacement is marked using filling content
Knowledge is filled, with according to the code building template generation code after process so that in code generation process, based on code building
Template, is filled the i.e. achievable code of replacement and automatically generates to difference content, and without the need for user, writing for repeatability is matched somebody with somebody manually
Put file, it is ensured that the standardization of the code of generation, accuracy, effectively improve the development efficiency of code.
In above-mentioned technical proposal, it is preferable that the step according to the target sample code establishing code building template
Suddenly, specifically include:Difference content and shared content are extracted from the target sample code;Based on the difference content and institute
Shared content is stated, the code building template is created;Wherein, used in the code building template, the difference content is replaced
Difference content described in mark for marking.
In the technical scheme, difference content is extracted from target sample code and shared content (specifically, can pass through
Velocity template engines can also pass through processing to target sample code, certainly Freemarker template engines or its
He is processed to target sample code self-defined template engine), and difference content and shared content are based on, create code building
Template, it is ensured that the establishment efficiency of code building template.Wherein, difference content is referred in coding process is generated needs to change, adjusts
Whole content, shared content refer to some contents that are shared, need not changing in coding process is generated.
In any of the above-described technical scheme, it is preferable that the difference content replaces mark includes placeholder.
In any of the above-described technical scheme, it is preferable that also include:In the generation according to the target sample code establishing
During code generates template, judge whether the code building template needs to be associated with target database;It is determined that described
When code building template need to be associated with the target database, it is target database described in the code building template configuration, its
In, it is stored with the target database and the filling content of mark is replaced for filling the difference content;It is determined that the generation
When code generation template is not required to associate with the target database, it is configured to fill in the filling that the difference content replacement is identified
Hold the incidence relation that mark is replaced with the difference content.
In the technical scheme, during the establishment of code building template, can according to code building template whether need with
The judged result that target database is associated is being further determined as code building template configuration target database or difference
Content replaces the incidence relation of mark and filling content, meets different configuration needs.
In any of the above-described technical scheme, it is preferable that described to determine that the difference content replaces the corresponding filling of mark
The step of content, specifically include:According to the target database or the incidence relation, determine that the difference content replaces mark
Corresponding filling content.
In the technical scheme, when it is determined that difference content replacement identifies corresponding filling content, can be from data base
Search, can be being searched according to incidence relation, it is ensured that can correctly find corresponding filling content, be follow-up code
Offer premise guarantee is be provided.
In any of the above-described technical scheme, it is preferable that described to instruct the storing path for including the code, the code
Generation method also includes:Storing path according to the code is preserved to the code.
In the technical scheme, code can be preserved according to the storing path of code, be easy to user to search and manage
Code.
Fig. 2 shows the schematic block diagram of code generating system according to an embodiment of the invention.
As shown in Fig. 2 code generating system according to an embodiment of the invention 200, including:Template generation unit
202nd, determining unit 204, fills unit 206 and code generating unit 208.
Wherein, template generation unit 202 is used to obtain target sample row code, and according to the target sample code establishing generation
Code generates template, wherein, include difference content in the code building template and replace mark and shared content;Determining unit
204 replace the corresponding filling content of mark for when the instruction for generating code is received, determining the difference content;Filling is single
Unit 206 is filled for replacing mark to the difference content using the filling content, is given birth to the code after being processed
Into template;Code generating unit 208 is for the code according to the code building template generation after the process.
In the technical scheme, by the target sample code that gets, (target sample code can be that user compiles in advance
The sample code finished writing or selected sample code) code building template is created, when the instruction for generating code is received, it is determined that
Difference content in code building template replaces the corresponding filling content of mark, and difference content replacement is marked using filling content
Knowledge is filled, with according to the code building template generation code after process so that in code generation process, based on code building
Template, is filled the i.e. achievable code of replacement and automatically generates to difference content, and without the need for user, writing for repeatability is matched somebody with somebody manually
Put file, it is ensured that the standardization of the code of generation, accuracy, effectively improve the development efficiency of code.
In above-mentioned technical proposal, it is preferable that the template generation unit 202 specifically for:From the target sample generation
Difference content and shared content are extracted in code;Based on the difference content and the shared content, the code building is created
Template;Wherein, used in the code building template, the difference content replaces difference content described in mark for marking.
In the technical scheme, difference content is extracted from target sample code and shared content (specifically, can pass through
Velocity template engines can also pass through processing to target sample code, certainly Freemarker template engines or its
He is processed to target sample code self-defined template engine), and difference content and shared content are based on, create code building
Template, it is ensured that the establishment efficiency of code building template.Wherein, difference content is referred in coding process is generated needs to change, adjusts
Whole content, shared content refer to some contents that are shared, need not changing in coding process is generated.
In any of the above-described technical scheme, it is preferable that the difference content replaces mark includes placeholder.
In any of the above-described technical scheme, it is preferable that also include:Judging unit 210, for according to the target sample
During code building template described in example code establishing, judge whether the code building template needs to carry out with target database
Association;Dispensing unit 212, for determining that the code building template need to be with the target database in the judging unit 210
During association, it is target database described in the code building template configuration, wherein, it is stored with the target database for filling out
The filling content that the difference content replaces mark is filled, and the code building template is determined not in the judging unit 210
When need to associate with the target database, it is configured to fill the filling content and the difference that the difference content replaces mark
Content replaces the incidence relation of mark.
In the technical scheme, during the establishment of code building template, can according to code building template whether need with
The judged result that target database is associated is being further determined as code building template configuration target database or difference
Content replaces the incidence relation of mark and filling content, meets different configuration needs.
In any of the above-described technical scheme, it is preferable that the determining unit 204 specifically for:According to the number of targets
According to storehouse or the incidence relation, determine that the difference content replaces the corresponding filling content of mark.
In the technical scheme, when it is determined that difference content replacement identifies corresponding filling content, can be from data base
Search, can be being searched according to incidence relation, it is ensured that can correctly find corresponding filling content, be follow-up code
Offer premise guarantee is be provided.
In any of the above-described technical scheme, it is preferable that described to instruct the storing path for including the code, the code
Generation system also includes:Memory element 214, for preserving to the code according to the storing path of the code.
In the technical scheme, code can be preserved according to the storing path of code, be easy to user to search and manage
Code.
Technical scheme is described further below in conjunction with Fig. 3 and Fig. 4.
As shown in figure 3, in the present embodiment, code generating system 300 includes:Template configuration unit 302, data source is adapted to
Unit 304 and code generating unit 306.User can be using template configuration unit 302 according to the self-defined generation of demand of oneself
Code building template, covers configuration file, interface document, entity class file, mapped file etc.;Data source adaptation unit 304 can
The data source of template is generated for configuration code, the data-driven that industry can be supported conventional, such as:mysql、oracle、db2、
Sqlserver etc.;Code generating unit 306, is filled with corresponding filling content to the placeholder in code building template,
Generate complete code.
Specifically, as shown in figure 4, processing procedure between unit:
First, the handling process of template configuration unit 302
Step 1:According to normal flow, a sample code (i.e. target sample code) is write.
Step 2:According to the content abstraction and extraction difference section content of sample code.
Step 3:Replacement difference section is placeholder;
Step 4:Judge whether code building is related to database manipulation part, if so, jump to data source adaptation unit 304
Carry out the configuration of data source;Otherwise, configure the information content (filling content) that placeholder needs to replace.
2nd, the handling process of data source adaptation unit 304
Select the corresponding type of database of code building template to drive, and select the entity table for needing to generate, entity table
In be stored with filling content.
3rd, the handling process of code generating unit 306
Step 1:After template configuration unit 302 defines template file, read these files, it is intended that start class and
Specifying needs to generate code startup program.
Step 2:Configuration code generates the path for needing to preserve.
Step 3:According to template configuration before, judge whether code building template is connected to data base.
Step 4:When code building template is connected to data base, directly placeholder is obtained in data source adaptation unit 304
The content of filling is needed, specifically, filling content can be obtained according to entity table information by metadata driven, or in code building
Template unconnected data storehouse, content to be filled during directly acquisition placeholder maps from template configuration unit 302.
Step 5:According to placeholder and the mapping relations of filling content, code generation operation is performed;
Step 6:According to the code that specified storing path is preserved.
In the above-described embodiments, code building template is not limited to programming language, can carry out template to any language
Configuration and formulation, can be also code building template configuration database-driven metadata schema by data source adaptation unit, in addition
Can be quickly generating all kinds of configuration files, such as mapped file, entity class according to the type of database and field type of metadata
File etc., in actual items, no matter more the systems of complexity, necessarily more or less have between different service logics similar
Code, can carry out abstract extraction to code content, and difference section is substituted using placeholder, is given birth to using Velocity template engines
Into the code of partial content, even and if have the content of some non-general character, it is also possible to continue modification in the code for generating so that
The code of generation is more preferably safeguarded, more standardizes, style can be kept to unify, can be widely applied to as built script template
Generation, static resource template generation, Java code etc. have the product of templating code building demand.
Technical scheme is described in detail above in association with accompanying drawing, technical scheme proposes a kind of new
Code building scheme, can be effectively improved the development efficiency of code, and is guaranteed based on the code building template generation code for creating
The standardization and correctness of code.
The preferred embodiments of the present invention are the foregoing is only, the present invention is not limited to, for the skill of this area
For art personnel, the present invention can have various modifications and variations.It is all within the spirit and principles in the present invention, made any repair
Change, equivalent, improvement etc., should be included within the scope of the present invention.
Claims (12)
1. a kind of code generating method, it is characterised in that include:
Target sample row code is obtained, and according to the target sample code establishing code building template, wherein, the code building
Include difference content in template and replace mark and shared content;
When the instruction for generating code is received, determine that the difference content replaces the corresponding filling content of mark, and use institute
State filling content to be filled difference content replacement mark, with the code building template after being processed;
The code according to the code building template generation after the process.
2. code generating method according to claim 1, it is characterised in that described according to the target sample code establishing
The step of code building template, specifically include:
Difference content and shared content are extracted from the target sample code;
Based on the difference content and the shared content, the code building template is created;
Wherein, used in the code building template, the difference content replaces difference content described in mark for marking.
3. code generating method according to claim 1, it is characterised in that the difference content replaces mark includes occupy-place
Symbol.
4. code generating method according to any one of claim 1 to 3, it is characterised in that also include:
During the code building template according to the target sample code establishing, judge that the code building template is
It is no to be associated with target database;
When it is determined that the code building template need to be associated with the target database, it is described in the code building template configuration
Target database, wherein, it is stored with the target database and the filling content of mark is replaced for filling the difference content;
When it is determined that the code building template is not required to associate with the target database, it is configured to fill the difference content
The filling content and the difference content of replacing mark replace the incidence relation of mark.
5. code generating method according to claim 4, it is characterised in that the determination difference content replaces mark
The step of corresponding filling content, specifically include:
According to the target database or the incidence relation, determine that the difference content replaces the corresponding filling content of mark.
6. code generating method according to any one of claim 1 to 3, it is characterised in that the instruction includes described
The storing path of code, the code generating method also include:
Storing path according to the code is preserved to the code.
7. a kind of code generating system, it is characterised in that include:
Template generation unit, for obtaining target sample row code, and according to the target sample code establishing code building template,
Wherein, include difference content in the code building template and replace mark and shared content;
Determining unit, for when the instruction for generating code is received, determining that the difference content replaces the corresponding filling of mark
Content;
Fills unit, is filled for replacing mark to the difference content using the filling content, after being processed
Code building template;
Code generating unit, for the code according to the code building template generation after the process.
8. code generating system according to claim 7, it is characterised in that the template generation unit specifically for:
Difference content and shared content are extracted from the target sample code;
Based on the difference content and the shared content, the code building template is created;
Wherein, used in the code building template, the difference content replaces difference content described in mark for marking.
9. code generating system according to claim 7, it is characterised in that the difference content replaces mark includes occupy-place
Symbol.
10. the code generating system according to any one of claim 7 to 9, it is characterised in that also include:
Judging unit, for during the code building template according to the target sample code establishing, judging described
Whether code building template needs is associated with target database;
Dispensing unit, for when the judging unit determines that the code building template need to be associated with the target database,
The target database described in the code building template configuration, wherein, it is stored with the target database described for filling
Difference content replaces the filling content of mark, and determines that the code building template is not required to and the mesh in the judging unit
During mark database association, it is configured to fill filling content and the difference content replacement mark that the difference content replaces mark
The incidence relation of knowledge.
11. code generating systems according to claim 10, it is characterised in that the determining unit specifically for:
According to the target database or the incidence relation, determine that the difference content replaces the corresponding filling content of mark.
12. code generating systems according to any one of claim 7 to 9, it is characterised in that the instruction includes described
The storing path of code, the code generating system also include:
Memory element, for preserving to the code according to the storing path of the code.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611041979.2A CN106528165B (en) | 2016-11-11 | 2016-11-11 | Code generating method and code generating system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611041979.2A CN106528165B (en) | 2016-11-11 | 2016-11-11 | Code generating method and code generating system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106528165A true CN106528165A (en) | 2017-03-22 |
CN106528165B CN106528165B (en) | 2019-10-08 |
Family
ID=58356401
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611041979.2A Active CN106528165B (en) | 2016-11-11 | 2016-11-11 | Code generating method and code generating system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106528165B (en) |
Cited By (22)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107391149A (en) * | 2017-07-28 | 2017-11-24 | 郑州云海信息技术有限公司 | The code generating method and device of a kind of hardware platform |
CN108304175A (en) * | 2018-01-29 | 2018-07-20 | 口碑(上海)信息技术有限公司 | Packaging method and device is isolated in code file |
JP2018173699A (en) * | 2017-03-31 | 2018-11-08 | 株式会社日立社会情報サービス | Template generation device, template generation method and program |
CN109032584A (en) * | 2018-07-27 | 2018-12-18 | 郑州云海信息技术有限公司 | A kind of generation method of cascading style sheets, device, equipment and medium |
CN109032662A (en) * | 2018-06-19 | 2018-12-18 | 上海陆家嘴国际金融资产交易市场股份有限公司 | Code file generation method, device, computer equipment and storage medium |
CN109063181A (en) * | 2018-08-23 | 2018-12-21 | 北京达佳互联信息技术有限公司 | Data configuration method, device, server and storage medium |
CN109086043A (en) * | 2018-06-27 | 2018-12-25 | 珠海宏桥高科技有限公司 | A kind of method and apparatus for quickly generating WEB project based on configuration |
CN109271161A (en) * | 2018-08-20 | 2019-01-25 | 中国平安人寿保险股份有限公司 | Template code generating method, device and storage equipment and computer equipment |
CN109375943A (en) * | 2018-10-18 | 2019-02-22 | 中国银行股份有限公司 | A kind of program file generation method and device |
CN109783336A (en) * | 2018-12-18 | 2019-05-21 | 中国平安人寿保险股份有限公司 | Data analyze scenario generation method, device, medium and electronic equipment |
CN110209388A (en) * | 2019-05-29 | 2019-09-06 | 广州酷车信息科技有限公司 | The generation method of applet file |
CN110442329A (en) * | 2019-06-26 | 2019-11-12 | 平安科技(深圳)有限公司 | Generation method, device, storage medium and the computer equipment of code segment |
CN111399853A (en) * | 2020-02-20 | 2020-07-10 | 四川新网银行股份有限公司 | Templated deployment method of machine learning model and custom operator |
CN112162744A (en) * | 2020-09-30 | 2021-01-01 | 中国工商银行股份有限公司 | Automatic code generation method and device based on business scene |
CN112667204A (en) * | 2020-12-15 | 2021-04-16 | 南方电网数字电网研究院有限公司 | Data processing method and device for microservice application and computer equipment |
CN112667202A (en) * | 2020-12-07 | 2021-04-16 | 南方电网数字电网研究院有限公司 | Software design method and device combining MDA (model-driven architecture) and BPMN (Business Process management) |
CN113126974A (en) * | 2021-06-17 | 2021-07-16 | 北京壁仞科技开发有限公司 | Code generation/execution method, device, equipment and storage medium |
CN113535147A (en) * | 2021-07-20 | 2021-10-22 | 挂号网(杭州)科技有限公司 | Method and device for generating calling code, electronic terminal and storage medium |
CN113608726A (en) * | 2021-07-30 | 2021-11-05 | 三一专用汽车有限责任公司 | Code generation method and device, electronic equipment and storage medium |
CN113805877A (en) * | 2021-09-26 | 2021-12-17 | 工银科技有限公司 | Project engineering construction method and device based on IDEA plug-in |
CN113918664A (en) * | 2021-12-14 | 2022-01-11 | 阿里云计算有限公司 | Data processing method and device |
CN114547085A (en) * | 2022-03-22 | 2022-05-27 | 中国铁塔股份有限公司 | Data processing method and device, electronic equipment and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102508669A (en) * | 2011-11-14 | 2012-06-20 | 浙江鸿程计算机***有限公司 | Automatic program code generating method |
CN103631601A (en) * | 2013-12-10 | 2014-03-12 | 北京中电普华信息技术有限公司 | Code generation method and code generation device |
CN104035873A (en) * | 2014-06-30 | 2014-09-10 | 青岛海信电器股份有限公司 | Method and device for generating testing codes |
CN104035754A (en) * | 2013-03-05 | 2014-09-10 | 北大方正集团有限公司 | XML (Extensible Markup Language)-based custom code generation method and generator |
CN104331285A (en) * | 2014-10-30 | 2015-02-04 | 北京思特奇信息技术股份有限公司 | Automatic code generation method and system |
-
2016
- 2016-11-11 CN CN201611041979.2A patent/CN106528165B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102508669A (en) * | 2011-11-14 | 2012-06-20 | 浙江鸿程计算机***有限公司 | Automatic program code generating method |
CN104035754A (en) * | 2013-03-05 | 2014-09-10 | 北大方正集团有限公司 | XML (Extensible Markup Language)-based custom code generation method and generator |
CN103631601A (en) * | 2013-12-10 | 2014-03-12 | 北京中电普华信息技术有限公司 | Code generation method and code generation device |
CN104035873A (en) * | 2014-06-30 | 2014-09-10 | 青岛海信电器股份有限公司 | Method and device for generating testing codes |
CN104331285A (en) * | 2014-10-30 | 2015-02-04 | 北京思特奇信息技术股份有限公司 | Automatic code generation method and system |
Cited By (29)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2018173699A (en) * | 2017-03-31 | 2018-11-08 | 株式会社日立社会情報サービス | Template generation device, template generation method and program |
CN107391149A (en) * | 2017-07-28 | 2017-11-24 | 郑州云海信息技术有限公司 | The code generating method and device of a kind of hardware platform |
CN108304175A (en) * | 2018-01-29 | 2018-07-20 | 口碑(上海)信息技术有限公司 | Packaging method and device is isolated in code file |
CN108304175B (en) * | 2018-01-29 | 2021-06-08 | 口碑(上海)信息技术有限公司 | Code file isolation packaging method and device |
CN109032662A (en) * | 2018-06-19 | 2018-12-18 | 上海陆家嘴国际金融资产交易市场股份有限公司 | Code file generation method, device, computer equipment and storage medium |
CN109086043A (en) * | 2018-06-27 | 2018-12-25 | 珠海宏桥高科技有限公司 | A kind of method and apparatus for quickly generating WEB project based on configuration |
CN109032584A (en) * | 2018-07-27 | 2018-12-18 | 郑州云海信息技术有限公司 | A kind of generation method of cascading style sheets, device, equipment and medium |
CN109271161A (en) * | 2018-08-20 | 2019-01-25 | 中国平安人寿保险股份有限公司 | Template code generating method, device and storage equipment and computer equipment |
CN109271161B (en) * | 2018-08-20 | 2024-06-04 | 中国平安人寿保险股份有限公司 | Template code generation method and device, storage device and computer device |
CN109063181A (en) * | 2018-08-23 | 2018-12-21 | 北京达佳互联信息技术有限公司 | Data configuration method, device, server and storage medium |
CN109375943A (en) * | 2018-10-18 | 2019-02-22 | 中国银行股份有限公司 | A kind of program file generation method and device |
CN109783336A (en) * | 2018-12-18 | 2019-05-21 | 中国平安人寿保险股份有限公司 | Data analyze scenario generation method, device, medium and electronic equipment |
CN110209388A (en) * | 2019-05-29 | 2019-09-06 | 广州酷车信息科技有限公司 | The generation method of applet file |
CN110442329A (en) * | 2019-06-26 | 2019-11-12 | 平安科技(深圳)有限公司 | Generation method, device, storage medium and the computer equipment of code segment |
CN111399853A (en) * | 2020-02-20 | 2020-07-10 | 四川新网银行股份有限公司 | Templated deployment method of machine learning model and custom operator |
CN111399853B (en) * | 2020-02-20 | 2023-06-06 | 四川新网银行股份有限公司 | Templated deployment method for machine learning model and custom operator |
CN112162744A (en) * | 2020-09-30 | 2021-01-01 | 中国工商银行股份有限公司 | Automatic code generation method and device based on business scene |
CN112667202A (en) * | 2020-12-07 | 2021-04-16 | 南方电网数字电网研究院有限公司 | Software design method and device combining MDA (model-driven architecture) and BPMN (Business Process management) |
CN112667202B (en) * | 2020-12-07 | 2023-06-30 | 南方电网数字电网研究院有限公司 | Software design method and device combining MDA and BPMN |
CN112667204A (en) * | 2020-12-15 | 2021-04-16 | 南方电网数字电网研究院有限公司 | Data processing method and device for microservice application and computer equipment |
CN112667204B (en) * | 2020-12-15 | 2024-01-23 | 南方电网数字平台科技(广东)有限公司 | Data processing method and device for micro-service application and computer equipment |
CN113126974B (en) * | 2021-06-17 | 2021-09-28 | 北京壁仞科技开发有限公司 | Code generation/execution method, device, equipment and storage medium |
CN113126974A (en) * | 2021-06-17 | 2021-07-16 | 北京壁仞科技开发有限公司 | Code generation/execution method, device, equipment and storage medium |
CN113535147A (en) * | 2021-07-20 | 2021-10-22 | 挂号网(杭州)科技有限公司 | Method and device for generating calling code, electronic terminal and storage medium |
CN113608726A (en) * | 2021-07-30 | 2021-11-05 | 三一专用汽车有限责任公司 | Code generation method and device, electronic equipment and storage medium |
CN113608726B (en) * | 2021-07-30 | 2023-08-11 | 三一专用汽车有限责任公司 | Code generation method, device, electronic equipment and storage medium |
CN113805877A (en) * | 2021-09-26 | 2021-12-17 | 工银科技有限公司 | Project engineering construction method and device based on IDEA plug-in |
CN113918664A (en) * | 2021-12-14 | 2022-01-11 | 阿里云计算有限公司 | Data processing method and device |
CN114547085A (en) * | 2022-03-22 | 2022-05-27 | 中国铁塔股份有限公司 | Data processing method and device, electronic equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN106528165B (en) | 2019-10-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106528165A (en) | Code generation method and code generation system | |
US7340475B2 (en) | Evaluating dynamic expressions in a modeling application | |
EP3433732B1 (en) | Converting visual diagrams into code | |
CN104407973B (en) | A kind of implementation method and device of automation cell test | |
Prowell et al. | Cleanroom software engineering: technology and process | |
CN106874256A (en) | Name the method and device of entity in identification field | |
CN109657215A (en) | Document structure tree method, equipment, storage medium and device based on template | |
CN107168762B (en) | Body-based RUCM (robust object model) consistency checking method | |
US20080276221A1 (en) | Method and apparatus for relations planning and validation | |
CN106648587A (en) | Annotation-based Web application code generation method | |
CN106708718A (en) | Service framework interface testing method and device | |
CN109710933A (en) | Acquisition methods, device, computer equipment and the storage medium of training corpus | |
CN113961584A (en) | Method and device for analyzing field blood relationship, electronic equipment and storage medium | |
CN109815242A (en) | A kind of data processing method and system | |
CN106775824A (en) | A kind of application file packaging system and method with channel information | |
Bouquet et al. | Requirements traceability in automated test generation: application to smart card software validation | |
CN116661756A (en) | Object analysis method and device based on low-code DSL | |
US7472248B1 (en) | Techniques for generating serial presence detect contents | |
CN109800776A (en) | Material mask method, device, terminal and computer readable storage medium | |
CN109491884A (en) | Code method for testing performance, device, computer equipment and medium | |
EP2343658A1 (en) | Federation as a process | |
CN110162299A (en) | Web program and its Quick Development Framework, development approach and relevant device | |
KR20080052987A (en) | Method and apparatus for managing reusable resources | |
CN109254774A (en) | The management method and device of code in software development system | |
CN105204383B (en) | Using the generation method and device of servo-drive system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |