CN109324794A - Automatically state method, system, equipment and the medium of the object in code - Google Patents

Automatically state method, system, equipment and the medium of the object in code Download PDF

Info

Publication number
CN109324794A
CN109324794A CN201811028758.0A CN201811028758A CN109324794A CN 109324794 A CN109324794 A CN 109324794A CN 201811028758 A CN201811028758 A CN 201811028758A CN 109324794 A CN109324794 A CN 109324794A
Authority
CN
China
Prior art keywords
code
project file
searching
file
father node
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
Application number
CN201811028758.0A
Other languages
Chinese (zh)
Other versions
CN109324794B (en
Inventor
吴迪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Polytron Technologies Inc
Original Assignee
Shanghai Polytron Technologies Inc
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Shanghai Polytron Technologies Inc filed Critical Shanghai Polytron Technologies Inc
Priority to CN201811028758.0A priority Critical patent/CN109324794B/en
Publication of CN109324794A publication Critical patent/CN109324794A/en
Application granted granted Critical
Publication of CN109324794B publication Critical patent/CN109324794B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/33Intelligent editors
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/36Software reuse
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/73Program documentation

Abstract

The present invention relates to computer software development fields, in particular to automatically state method, system, equipment and the medium of the object in code.The method for automatically stating the object in code in the present invention, in project file, method includes: to search the object in project file with code with identical father node for object and code;Reference name of the object with identical father node in code is claimed as object oriented of the object in project file;And/or search the object with global statement attribute;To there is reference name of the object of global statement attribute in code to be claimed as object oriented of the object in project file.The present invention solves the prior art there are a large amount of duplication of labour, and time-consuming, and will increase the technical issues of malfunctioning probability.

Description

Automatically state method, system, equipment and the medium of the object in code
Technical field
The present invention relates to computer software development fields, in particular to automatically state the method for the object in code, are System, equipment and medium.
Background technique
Currently, for the object that may be cited in code, user needs seriatim carry out sound according to code regulation It is bright.If will be unable to correctly quote these objects in subsequent code without statement in advance.However, in practice, Often there is a large amount of duplication of labour in the process of statement, time-consuming, and will increase error probability.
Summary of the invention
The purpose of the present invention is to provide method, system, equipment and the media of the object automatically stated in code, solve The prior art is there are a large amount of duplication of labour, and time-consuming, and will increase the technical issues of malfunctioning probability.
In order to solve the above technical problems, embodiments of the present invention disclose a kind of object automatically stated in code In project file, method includes: to search pair in project file with code with identical father node for method, object and code As;Reference name of the object with identical father node in code is claimed as object name of the object in project file Claim;And/or search the object with global statement attribute;To there is reference name of the object of global statement attribute in code It is claimed as object oriented of the object in project file.
Optionally, searching the object in project file with code with identical father node includes searching in project file In the object of same level is in code.
Optionally, it includes searching in project file in global statement layer that searching, which has the object of global statement attribute, The object of grade.
Optionally, object includes code object and/or non-code object.
Embodiments of the present invention also disclose a kind of system for automatically stating the object in code, and object and code exist In project file, system includes: the first searching unit, for searching pair in project file with code with identical father node As;First statement unit, for will have reference name of the object of identical father node in code to be claimed as the object in work Object oriented in journey file;And/or second searching unit, for searching the object with global statement attribute;Second statement Unit, for will have reference name of the object of global statement attribute in code to be claimed as the object in project file Object oriented.
Optionally, searching the object in project file with code with identical father node includes searching in project file In the object of same level is in code.
Optionally, it includes searching in project file in global statement layer that searching, which has the object of global statement attribute, The object of grade.
Optionally, object includes code object and/or non-code object.
Embodiments of the present invention also disclose a kind of equipment for automatically stating the object in code, and equipment includes storage There are the memory and processor of computer executable instructions, processor is configured as executing instruction to implement automatically to state code In object method.
Embodiments of the present invention also disclose a kind of non-volatile computer storage Jie using computer program code Matter, computer program include instruction, and instruction is executed by more than one computer to implement automatically to state the object in code Method.
Compared with prior art, the main distinction and its effect are embodiment of the present invention:
In the present invention, if object in project file with code father node having the same, and/or if object have There is global statement attribute, then the reference name by object in code is claimed as object oriented of the object in project file, To realize the object automatically stated in code, user does not need seriatim to state again, avoids the duplication of labour, and It avoids and mistake occurs in manual announcement procedure.
Detailed description of the invention
Fig. 1 is the flow diagram of the method for automatically stating the object in code of first embodiment of the invention;
Fig. 2 is the flow diagram of the method for automatically stating the object in code of second embodiment of the invention;
Fig. 3 is the flow diagram of the method for automatically stating the object in code of third embodiment of the invention;
Fig. 4 is the structural schematic diagram of the system for automatically stating the object in code of four embodiment of the invention;
Fig. 5 is the structural schematic diagram of the system for automatically stating the object in code of fifth embodiment of the invention;
Fig. 6 is the structural schematic diagram of the system for automatically stating the object in code of sixth embodiment of the invention.
Specific embodiment
In the following description, in order to make the reader understand this application better, many technical details are proposed.But this The those of ordinary skill in field is appreciated that even if without these technical details and many variations based on the following respective embodiments And modification, each claim of the application technical solution claimed can also be realized.
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with attached drawing to implementation of the invention Mode is described in further detail.
The first embodiment of the present invention is related to a kind of methods for automatically stating the object in code.Fig. 1 is this method 100 flow diagram.Specifically, in project file, method 100 includes: for object and code
Step 102, the object in project file with code with identical father node is searched.
Optionally, searching the object in project file with code with identical father node includes searching in project file In the object of same level is in code.More specifically, searching the object for being in same level with code in project file Including searching the object for being in same file folder with code in project file.
In general, for lookup later and quoted conveniently when user arranges hierarchical relationship of the object in project file, User tends to put together the object with logical relation and code, i.e., object has phase with code in project file Father node together is in identical level or is in identical file.Therefore, by step 102, it can find out to have and patrol The object and code for the relationship of collecting, these objects are the objects that the code is most possibly quoted.
Step 104, reference name of the object with identical father node in code is claimed as the object in engineering text Object oriented in part.By step 104, user can directly quote object name of the object in project file in code Claim, to reduce memory cost and error probability.
Optionally, object includes code object and/or non-code object.Therefore, method 100 can automatically state code In code object and/or non-code object.
For example, there are three non-code object Table, Chair and Bed and codes in a project file PaintRed, furthermore may be there are also remaining one or more object and one or more codes, wherein code PaintRed Effect is that the color of cited object is changed to red.Assuming that three non-code objects Table, Chair and Bed will be drawn In code PaintRed, then it is generally necessary in code PaintRed seriatim to three non-code object Table, Chair and Bed are stated, otherwise will be unable to correctly quote these objects.
However, the object in project file with code PaintRed with identical father node is searched according to method 100, Assuming that three non-code objects Table, Chair and Bed are tied in project file with code PaintRed father having the same Point is in identical level or is in identical file (for example, House file), then by three non-code objects The reference name of Table, Chair and Bed in code PaintRed be claimed as three non-code objects Table, Chair with And respective object oriented (for example, Table, Chair and Bed) of the Bed in project file.Therefore, method 100 is realized certainly The object in code is stated dynamicly, and user does not need seriatim to state again, avoids the duplication of labour, and avoid in hand Mistake occurs in dynamic announcement procedure.
In addition, for each code in remaining one or more code in project file, it can also be according to method 100, search the object in project file with each code with identical father node, and the drawing in each code by object Object oriented of the object in project file is claimed as with title.
It is worth noting that, object discussed above is also possible to code object.
Second embodiment of the present invention is related to a kind of method for automatically stating the object in code.Fig. 2 is this method 200 flow diagram.Specifically, in project file, method 200 includes: for object and code
Step 202, the object with global statement attribute is searched.
Optionally, it includes searching in project file in global statement layer that searching, which has the object of global statement attribute, The object of grade.More specifically, searching the object in global statement level in project file includes searching in project file Object in global statement file.
In general, some objects are not only cited in a code, but also are often cited in multiple codes, work as user When arranging hierarchical relationship of these objects in project file, in order to distinguish, user tends to be arranged one to these objects A special attribute, i.e., global statement attribute, attribute instruction object are likely to be cited in all or part of codes, or Person user tends to for these objects being separately placed at together, i.e., in global statement level or in complete in project file Office's statement file.Therefore, by step 202, the object for being likely to be cited in all or part of codes can be found out.
Step 204, will there is reference name of the object of global statement attribute in code to be claimed as the object in engineering Object oriented in file.By step 204, user can directly quote object of the object in project file in code Title, to reduce memory cost and error probability.
Optionally, object includes code object and/or non-code object.Therefore, method 200 can automatically state code In code object and/or non-code object.
For example, in a project file, there are two non-code object Sun and Moon and code PaintRed, Furthermore may be there are also remaining one or more object and one or more codes, wherein the effect of code PaintRed is by institute The color of the object of reference is changed to red.Assuming that two non-code object Sun and Moon will be cited in code PaintRed In, and will be cited in remaining one or more code, then it is generally necessary to seriatim to two in code PaintRed A non-code object Sun and Moon stated, and in each code in remaining one or more code one by one Two non-code object Sun and Moon are stated on ground, otherwise will be unable to correctly quote these objects.
However, according to method 200, search the object with global statement attribute, it is assumed that two non-code object Sun and Moon have global statement attribute, in project file in global statement level or in global statement file (for example, GlobalStatement file), then the reference name by two non-code object Sun and Moon in code PaintRed Claim be claimed as two non-code object Sun and Moon in project file respective object oriented (for example, Sun and Moon).Therefore, method 200 realizes the object automatically stated in code, and user does not need seriatim to state again, avoid The duplication of labour, and avoid mistake occurs in manual announcement procedure.
In addition, for each code in remaining one or more code in project file, it can also be according to method 200, reference name of two non-code object Sun and Moon in each code is claimed as two non-code object Sun And respective object oriented (for example, Sun and Moon) of the Moon in project file.
It is worth noting that, object discussed above is also possible to code object.
Third embodiment of the present invention is related to a kind of method for automatically stating the object in code.Fig. 3 is this method 300 flow diagram.Specifically, in project file, method 300 includes: for object and code
Step 302, the object in project file with code with identical father node is searched.
Optionally, searching the object in project file with code with identical father node includes searching in project file In the object of same level is in code.More specifically, searching the object for being in same level with code in project file Including searching the object for being in same file folder with code in project file.
In general, for lookup later and quoted conveniently when user arranges hierarchical relationship of the object in project file, User tends to put together the object with logical relation and code, i.e., object has phase with code in project file Father node together is in identical level or is in identical file.Therefore, by step 302, it can find out to have and patrol The object and code for the relationship of collecting, these objects are the objects that the code is most possibly quoted.
Step 304, reference name of the object with identical father node in code is claimed as the object in engineering text Object oriented in part.By step 304, user can directly quote object name of the object in project file in code Claim, to reduce memory cost and error probability.
Step 306, the object with global statement attribute is searched.
Optionally, it includes searching in project file in global statement layer that searching, which has the object of global statement attribute, The object of grade.More specifically, searching the object in global statement level in project file includes searching in project file Object in global statement file.
In general, some objects are not only cited in a code, but also are often cited in multiple codes, work as user When arranging hierarchical relationship of these objects in project file, in order to distinguish, user tends to be arranged one to these objects A special attribute, i.e., global statement attribute, attribute instruction object are likely to be cited in all or part of codes, or Person user tends to for these objects being separately placed at together, i.e., in global statement level or in complete in project file Office's statement file.Therefore, by step 306, the object for being likely to be cited in all or part of codes can be found out.
Step 308, will there is reference name of the object of global statement attribute in code to be claimed as the object in engineering Object oriented in file.By step 308, user can directly quote object of the object in project file in code Title, to reduce memory cost and error probability.
Optionally, object includes code object and/or non-code object.Therefore, method 300 can automatically state code In code object and/or non-code object.
For example, there are five non-code object Table, Chair, Bed, Sun and Moon and one in a project file A code PaintRed, furthermore may be there are also remaining one or more object and one or more codes, wherein code The effect of PaintRed is that the color of cited object is changed to red.Assuming that five non-code object Table, Chair, Bed, Sun and Moon will be cited in code PaintRed, and two non-code object Sun and Moon will be cited In remaining one or more code, then it is generally necessary to seriatim to five non-code objects in code PaintRed Table, Chair, Bed, Sun and Moon stated, and in each code in remaining one or more code Seriatim two non-code object Sun and Moon are stated, otherwise will be unable to correctly quote these objects.
However, the object in project file with code PaintRed with identical father node is searched according to method 300, Assuming that three non-code objects Table, Chair and Bed are tied in project file with code PaintRed father having the same Point is in identical level or is in identical file (for example, House file), then by three non-code objects The reference name of Table, Chair and Bed in code PaintRed be claimed as three non-code objects Table, Chair with And respective object oriented (for example, Table, Chair and Bed) of the Bed in project file.Searching, there is global statement to belong to Property object, it is assumed that two non-code object Sun and Moon have global statement attribute, in project file in global sound Bright level states file (for example, GlobalStatement file) in global, then by two non-code object Sun And reference name of the Moon in code PaintRed is claimed as two non-code object Sun and Moon in project file Respective object oriented (for example, Sun and Moon).Therefore, method 300 realizes the object automatically stated in code, uses Family do not need seriatim to be stated again, avoids the duplication of labour, and avoid and mistake occurs in manual announcement procedure.
In addition, for each code in remaining one or more code in project file, it can also be according to method 300, search the object in project file with each code with identical father node, and the drawing in each code by object It is claimed as object oriented of the object in project file with title, and by two non-code object Sun and Moon each Reference name in code is claimed as respective object oriented of two non-code object Sun and Moon in project file (for example, Sun and Moon).
It is worth noting that, object discussed above is also possible to code object.
It is worth noting that, step 306,308 can be carried out before step 302,304 or step 306,308 can be with It is simultaneously carried out with step 302,304 or step 306 can simultaneously be carried out with step 302 and step 308 can be with later It is simultaneously carried out with step 304.
It is worth noting that, for the object in project file with code with identical father node and there is global sound The object of bright attribute, if there is the case where name repeats in respective object oriented of these two types of objects in project file, The reference name for changing them in code can be determined how according to the setting of user or instruction etc..
4th embodiment of the invention is related to a kind of system for automatically stating the object in code.Fig. 4 is the system 400 structural schematic diagram.Specifically, in project file, system 400 includes: for object and code
First searching unit 402, for searching the object in project file with code with identical father node.
Optionally, searching the object in project file with code with identical father node includes searching in project file In the object of same level is in code.More specifically, searching the object for being in same level with code in project file Including searching the object for being in same file folder with code in project file.
In general, for lookup later and quoted conveniently when user arranges hierarchical relationship of the object in project file, User tends to put together the object with logical relation and code, i.e., object has phase with code in project file Father node together is in identical level or is in identical file.Therefore, it by the first searching unit 402, can look for The object and code of logical relation are provided, these objects are the objects that the code is most possibly quoted.
First statement unit 404, for will have reference name of the object of identical father node in code to be claimed as this Object oriented of the object in project file.By the first statement unit 404, user can directly quote the object in code Object oriented in project file, to reduce memory cost and error probability.
Optionally, object includes code object and/or non-code object.Therefore, system 400 can automatically state code In code object and/or non-code object.
First embodiment is method implementation corresponding with present embodiment, and present embodiment can be implemented with first Mode is worked in coordination implementation.The relevant technical details mentioned in first embodiment are still effective in the present embodiment, in order to It reduces and repeats, which is not described herein again.Correspondingly, the relevant technical details mentioned in present embodiment are also applicable in the first implementation In mode.
5th embodiment of the invention is related to a kind of system for automatically stating the object in code.Fig. 5 is the system 500 structural schematic diagram.Specifically, in project file, system 500 includes: for object and code
Second searching unit 502, for searching the object with global statement attribute.
Optionally, it includes searching in project file in global statement layer that searching, which has the object of global statement attribute, The object of grade.More specifically, searching the object in global statement level in project file includes searching in project file Object in global statement file.
In general, some objects are not only cited in a code, but also are often cited in multiple codes, work as user When arranging hierarchical relationship of these objects in project file, in order to distinguish, user tends to be arranged one to these objects A special attribute, i.e., global statement attribute, attribute instruction object are likely to be cited in all or part of codes, or Person user tends to for these objects being separately placed at together, i.e., in global statement level or in complete in project file Office's statement file.Therefore, by the second searching unit 502, it can find out and be likely to be drawn in all or part of codes Object.
Second statement unit 504, for will have reference name of the object of global statement attribute in code to be claimed as Object oriented of the object in project file.By the second statement unit 504, it is right that user can directly quote this in code As the object oriented in project file, to reduce memory cost and error probability.
Optionally, object includes code object and/or non-code object.Therefore, system 500 can automatically state code In code object and/or non-code object.
Second embodiment is method implementation corresponding with present embodiment, and present embodiment can be implemented with second Mode is worked in coordination implementation.The relevant technical details mentioned in second embodiment are still effective in the present embodiment, in order to It reduces and repeats, which is not described herein again.Correspondingly, the relevant technical details mentioned in present embodiment are also applicable in the second implementation In mode.
Sixth embodiment of the invention is related to a kind of system for automatically stating the object in code.Fig. 6 is the system 600 structural schematic diagram.Specifically, in project file, system 600 includes: for object and code
First searching unit 402, for searching the object in project file with code with identical father node.
Optionally, searching the object in project file with code with identical father node includes searching in project file In the object of same level is in code.More specifically, searching the object for being in same level with code in project file Including searching the object for being in same file folder with code in project file.
In general, for lookup later and quoted conveniently when user arranges hierarchical relationship of the object in project file, User tends to put together the object with logical relation and code, i.e., object has phase with code in project file Father node together is in identical level or is in identical file.Therefore, it by the first searching unit 402, can look for The object and code of logical relation are provided, these objects are the objects that the code is most possibly quoted.
First statement unit 404, for will have reference name of the object of identical father node in code to be claimed as this Object oriented of the object in project file.By the first statement unit 404, user can directly quote the object in code Object oriented in project file, to reduce memory cost and error probability.
Second searching unit 502, for searching the object with global statement attribute.
Optionally, it includes searching in project file in global statement layer that searching, which has the object of global statement attribute, The object of grade.More specifically, searching the object in global statement level in project file includes searching in project file Object in global statement file.
In general, some objects are not only cited in a code, but also are often cited in multiple codes, work as user When arranging hierarchical relationship of these objects in project file, in order to distinguish, user tends to be arranged one to these objects A special attribute, i.e., global statement attribute, attribute instruction object are likely to be cited in all or part of codes, or Person user tends to for these objects being separately placed at together, i.e., in global statement level or in complete in project file Office's statement file.Therefore, by the second searching unit 502, it can find out and be likely to be drawn in all or part of codes Object.
Second statement unit 504, for will have reference name of the object of global statement attribute in code to be claimed as Object oriented of the object in project file.By the second statement unit 504, it is right that user can directly quote this in code As the object oriented in project file, to reduce memory cost and error probability.
Optionally, object includes code object and/or non-code object.Therefore, system 600 can automatically state code In code object and/or non-code object.
It is worth noting that, the function of the first searching unit 402 and the second searching unit 502 can also be single by a lookup Member realizes that the function of the first statement unit 404 and the second statement unit 504 can also be realized by a statement unit.
Third embodiment is method implementation corresponding with present embodiment, and present embodiment can be implemented with third Mode is worked in coordination implementation.The relevant technical details mentioned in third embodiment are still effective in the present embodiment, in order to It reduces and repeats, which is not described herein again.Correspondingly, the relevant technical details mentioned in present embodiment are also applicable in third implementation In mode.
7th embodiment of the invention is related to a kind of equipment for automatically stating the object in code, and equipment includes storage There are the memory and processor of computer executable instructions, processor is configured as executing instruction to implement automatically to state code In object method.
First embodiment or second embodiment or third embodiment are that method corresponding with present embodiment is real Apply mode, present embodiment can work in coordination implementation with first embodiment or second embodiment or third embodiment.The The relevant technical details mentioned in one embodiment or second embodiment or third embodiment are in the present embodiment still Effectively, in order to reduce repetition, which is not described herein again.Correspondingly, the relevant technical details mentioned in present embodiment can also be applied In first embodiment or second embodiment or third embodiment.
8th embodiment of the invention is related to a kind of non-volatile computer storage Jie using computer program code Matter, computer program include instruction, and instruction is executed by more than one computer to implement automatically to state the object in code Method.
First embodiment or second embodiment or third embodiment are that method corresponding with present embodiment is real Apply mode, present embodiment can work in coordination implementation with first embodiment or second embodiment or third embodiment.The The relevant technical details mentioned in one embodiment or second embodiment or third embodiment are in the present embodiment still Effectively, in order to reduce repetition, which is not described herein again.Correspondingly, the relevant technical details mentioned in present embodiment can also be applied In first embodiment or second embodiment or third embodiment.
It should be noted that each method embodiment of the invention can be realized in a manner of software, hardware, firmware etc.. Regardless of the present invention is realized in a manner of software, hardware or firmware, instruction code may be stored in any kind of computer In addressable memory (such as permanent perhaps revisable volatibility is perhaps non-volatile solid or non-solid State, fix or replaceable medium etc.).Equally, memory may, for example, be programmable logic array (Programmable Array Logic, referred to as " PAL "), random access memory (Random Access Memory, referred to as " RAM "), programmable read only memory (Programmable Read Only Memory, referred to as " PROM "), read-only memory (Read-Only Memory, referred to as " ROM "), electrically erasable programmable read-only memory (Electrically Erasable Programmable ROM, referred to as " EEPROM "), disk, CD, digital versatile disc (Digital Versatile Disc, Referred to as " DVD ") etc..
It should be noted that each unit/the module mentioned in each equipment embodiment of the present invention is all logic unit/mould Block, physically, a logic unit can be a physical unit, are also possible to a part of a physical unit, may be used also With with the combination of multiple physical units realization, the Physical realization of these logic units itself be not it is most important, these The combination for the function that logic unit is realized is only the key for solving technical problem proposed by the invention.In addition, for protrusion Innovative part of the invention, the above-mentioned each equipment embodiment of the present invention is not by the technical problem proposed by the invention with solution The less close unit of relationship introduces, this does not indicate above equipment embodiment and there is no other units.
It should be noted that in the claim and specification of this patent, such as first and second or the like relationship Term is only used to distinguish one entity or operation from another entity or operation, without necessarily requiring or implying There are any actual relationship or orders between these entities or operation.Moreover, the terms "include", "comprise" or its Any other variant is intended to non-exclusive inclusion so that include the process, methods of a series of elements, article or Equipment not only includes those elements, but also including other elements that are not explicitly listed, or further include for this process, Method, article or the intrinsic element of equipment.In the absence of more restrictions, being wanted by what sentence " including one " limited Element, it is not excluded that there is also other identical elements in the process, method, article or apparatus that includes the element.
Although being shown and described to the present invention by referring to some of the preferred embodiment of the invention, It will be understood by those skilled in the art that can to it, various changes can be made in the form and details, without departing from this hair Bright spirit and scope.

Claims (10)

1. a kind of method for automatically stating the object in code, object and code are in project file, which is characterized in that described Method includes:
Search the object in the project file with the code with identical father node;
Reference name of the object with identical father node in the code is claimed as the object in the engineering text Object oriented in part;
And/or search the object with global statement attribute;
To there is reference name of the object of global statement attribute in the code to be claimed as the object in the engineering Object oriented in file.
2. the method according to claim 1, wherein searching has phase with the code in the project file The object with father node includes searching the object for being in same level with the code in the project file.
3. the method according to claim 1, wherein searching, there is the object of global statement attribute to include, Search the object in global statement level in the project file.
4. method according to any one of claim 1-3, which is characterized in that the object include code object and/or Non- code object.
5. a kind of system for automatically stating the object in code, object and code are in project file, which is characterized in that described System includes:
First searching unit, for searching the object in the project file with the code with identical father node;
First statement unit, for will have reference name of the object of identical father node in the code to be claimed as this Object oriented of the object in the project file;
And/or second searching unit, for searching the object with global statement attribute;
Second statement unit, for will have reference name of the object of global statement attribute in the code to be claimed as Object oriented of the object in the project file.
6. system according to claim 5, which is characterized in that searching has phase with the code in the project file The object with father node includes searching the object for being in same level with the code in the project file.
7. system according to claim 5, which is characterized in that searching the object with global statement attribute includes, Search the object in global statement level in the project file.
8. the system according to any one of claim 5-7, which is characterized in that the object include code object and/or Non- code object.
9. a kind of equipment for automatically stating the object in code, which is characterized in that the equipment can including being stored with computer The memory and processor executed instruction, the processor is configured to executing described instruction to implement as in claim 1-4 Described in any item methods for automatically stating the object in code.
10. a kind of nonvolatile computer storage media using computer program code, which is characterized in that the computer journey Sequence include instruction, described instruction by more than one computer execute with implement as it is of any of claims 1-4 from The method of the object in code is stated dynamicly.
CN201811028758.0A 2018-09-03 2018-09-03 Method, system, apparatus and medium for automatically declaring objects in code Active CN109324794B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811028758.0A CN109324794B (en) 2018-09-03 2018-09-03 Method, system, apparatus and medium for automatically declaring objects in code

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811028758.0A CN109324794B (en) 2018-09-03 2018-09-03 Method, system, apparatus and medium for automatically declaring objects in code

Publications (2)

Publication Number Publication Date
CN109324794A true CN109324794A (en) 2019-02-12
CN109324794B CN109324794B (en) 2022-05-06

Family

ID=65264654

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811028758.0A Active CN109324794B (en) 2018-09-03 2018-09-03 Method, system, apparatus and medium for automatically declaring objects in code

Country Status (1)

Country Link
CN (1) CN109324794B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101211273A (en) * 2006-12-25 2008-07-02 上海科泰世纪科技有限公司 Method for automatic creation for Singleton mode in component programming
CN101799753A (en) * 2009-12-17 2010-08-11 中国电力科学研究院 Method and device for realizing tree structure
US20100211939A1 (en) * 2009-02-18 2010-08-19 International Business Machines Corporation Processing an object-oriented query to retrieve data from a data source
US20100211572A1 (en) * 2009-02-13 2010-08-19 International Business Machines Corporation Indexing and searching json objects
CN102629204A (en) * 2012-03-09 2012-08-08 中国联合网络通信集团有限公司 Generating method and device for webpage source code
CN104360870A (en) * 2014-12-03 2015-02-18 北京和利时系统工程有限公司 Method and device for realizing object modeling
CN105224377A (en) * 2015-10-08 2016-01-06 广州华旻信息科技有限公司 A kind of method by metadata automatic generating software project code file and device
CN107357942A (en) * 2017-09-04 2017-11-17 山东达创网络科技股份有限公司 A kind of source code auxiliary Core Generator and its generation method

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101211273A (en) * 2006-12-25 2008-07-02 上海科泰世纪科技有限公司 Method for automatic creation for Singleton mode in component programming
US20100211572A1 (en) * 2009-02-13 2010-08-19 International Business Machines Corporation Indexing and searching json objects
US20100211939A1 (en) * 2009-02-18 2010-08-19 International Business Machines Corporation Processing an object-oriented query to retrieve data from a data source
CN101799753A (en) * 2009-12-17 2010-08-11 中国电力科学研究院 Method and device for realizing tree structure
CN102629204A (en) * 2012-03-09 2012-08-08 中国联合网络通信集团有限公司 Generating method and device for webpage source code
CN104360870A (en) * 2014-12-03 2015-02-18 北京和利时系统工程有限公司 Method and device for realizing object modeling
CN105224377A (en) * 2015-10-08 2016-01-06 广州华旻信息科技有限公司 A kind of method by metadata automatic generating software project code file and device
CN107357942A (en) * 2017-09-04 2017-11-17 山东达创网络科技股份有限公司 A kind of source code auxiliary Core Generator and its generation method

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
刘然等: "基于UML的CASE平台的代码自动生成", 《北京理工大学学报》 *
谭毅等: "软件工程中的模块可重用技术", 《探测与控制学报》 *

Also Published As

Publication number Publication date
CN109324794B (en) 2022-05-06

Similar Documents

Publication Publication Date Title
Fomin et al. Measure and conquer: Domination–a case study
Wai-chee Fu et al. Mining n-most interesting itemsets
US8893050B2 (en) Assembly and output of user-defined groupings
JP2005519370A (en) Effective storage of indented threads in threaded discussion applications
US8521711B2 (en) Providing persistent refined intermediate results selected from dynamic iterative filtering
CN106095964A (en) A kind of method that data are carried out visualization filing and search
US20240152498A1 (en) Data storage using vectors of vectors
CN107451204B (en) Data query method, device and equipment
CN108446398A (en) A kind of generation method and device of database
JP4839087B2 (en) Workflow management system
CN110442583B (en) Data processing method and device, electronic equipment and storage medium
US20140365498A1 (en) Finding A Data Item Of A Plurality Of Data Items Stored In A Digital Data Storage
CN103135947A (en) Method and device for displaying Windows disk letters
US9405519B2 (en) Method and system for register clearing in data flow analysis in decompilation
CN109324794A (en) Automatically state method, system, equipment and the medium of the object in code
CN104268191A (en) Document display method and device
US20180150759A1 (en) Calculation device, calculation method, and non-transitory computer-readable recording medium
CN101702180B (en) Method and system for searching associated field value
CN105184550B (en) Manage method, server and the system of waiting data
CN105718491A (en) Updating method and device between databases
US7962856B2 (en) Lookup control configuration
CN110019357B (en) Database query script generation method and device
EP2187320A2 (en) Apparatus and method for utilizing context to resolve ambiguous queries
CN107562533B (en) Data loading processing method and device
CN105426676A (en) Drilling data processing 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
GR01 Patent grant
GR01 Patent grant