CN107977226A - A kind of positive automatic parsing strategy of iOS data - Google Patents
A kind of positive automatic parsing strategy of iOS data Download PDFInfo
- Publication number
- CN107977226A CN107977226A CN201711176656.9A CN201711176656A CN107977226A CN 107977226 A CN107977226 A CN 107977226A CN 201711176656 A CN201711176656 A CN 201711176656A CN 107977226 A CN107977226 A CN 107977226A
- Authority
- CN
- China
- Prior art keywords
- data
- information
- type
- reading
- class
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/75—Structural analysis for program understanding
Abstract
The present invention relates to a kind of positive automatic parsing strategy of iOS data, include the following steps:Step 1, input data;Step 2, judge the species of data, be transferred to corresponding resolver, or manually select the species of data, be transferred to corresponding resolver;Step 3, presupposed information is read;Step 4, information integration or traversal processing carry out positive automatic parsing;Step 5, handling result is returned.The present invention, can be automatically performed data resolution, and data type, class, attribute, variable, object type can be given and parsed, and algorithm uniformity is good, and parsing accuracy is high, and APP and data are analyzed suitable for developer.
Description
Technical field
The present invention relates to iOS data analytic techniques field, specifically a kind of positive automatic parsing strategy of iOS data.
Background technology
When client is asked from server-side(Obtain)During to required data, these data can not be directly used, but need
Be converted to program code and can recognize, accessible data type, this process is known as data resolution.In the prior art,
Client needs to obtain the corresponding data of field, attribute one by one, then carries out resolution, not only cumbersome, size of code also phase
When big, easily there is mistake, be unfavorable for improving development efficiency.
The content of the invention
For defect existing in the prior art, it is an object of the invention to provide a kind of positive automatic parsing of iOS data
Strategy, can be automatically performed data resolution, and data type, class, attribute, variable, object type can be given and parsed, algorithm
Uniformity is good, and parsing accuracy is high, and App and data are analyzed suitable for developer.
To achieve the above objectives, the present invention adopts the technical scheme that:
The positive automatic parsing strategy of a kind of iOS data, it is characterised in that include the following steps:
Step 1, input data;
Step 2, judge the species of data, be transferred to corresponding resolver, or manually select the species of data, be transferred to corresponding parsing
Device;
Step 3, presupposed information is read;
Step 4, information integration or traversal processing carry out positive automatic parsing;
Step 5, handling result is returned.
Based on the above technical solutions, the species of the data includes:Data type, class, attribute, variable, object
Type;
Corresponding resolver includes:Data type resolver, class resolver, attribute resolver, variable resolution device, object class
Type resolver.
Based on the above technical solutions, for data type,
The reading presupposed information includes:Read preset kind map, including oc type of foundation and base data type;
Described information is integrated or traversal processing includes:Data type is parsed, is oc classes by data type conversion according to type map
Type;
The return handling result includes:Judging whether to change successfully, successful then return is changed successfully, and returned data, otherwise,
Return to convert failed.
Based on the above technical solutions, for class,
The reading presupposed information includes:Class essential information is read, produces the object for including category information, reads class name, superclass, matchmaker
The information such as body class;
Described information is integrated or traversal processing includes:Traversal reads generic attribute, and traversal reads class variable, and traversal reads class method,
Traversal reads superclass information, and category information storage object is produced according to above- mentioned information;
The return handling result includes:Produce category information layout.
Based on the above technical solutions, the traversal reads generic attribute, by calling attribute resolver to realize;
The traversal reads class variable, by calling variable resolution device to realize.
Based on the above technical solutions, for attribute,
The reading presupposed information includes:Reading attributes essential information, reading attributes name key, reading attributes type, reading attributes
Protocol information, reading attributes are set, read method;
Described information is integrated or traversal processing includes:According to type reading attributes category information;
The return handling result includes:Attribute storage object is produced according to information above, produces attribute layout.
Based on the above technical solutions, the reading attributes type, by calling object type resolver to realize.
Based on the above technical solutions, for variable,
The reading presupposed information includes:Variable essential information is read, reads variable name key, reads types of variables,
Described information is integrated or traversal processing includes:Variable storage object is produced according to information above;
The return handling result includes:Produce variable layout.
Based on the above technical solutions, the reading types of variables, by calling object type resolver to realize.
Based on the above technical solutions, for object type,
The reading presupposed information includes:Set according to user and read presupposed information, or directly skipped;
Described information is integrated or traversal processing includes:Attribute type is obtained according to ocruntime, presetting map according to type produces
The corresponding enumerated value of type;
The return handling result includes:Return to analysis result.
The positive automatic parsing strategy of iOS data of the present invention, can be automatically performed data resolution, to data class
Type, class, attribute, variable, object type can be given and parse, and algorithm uniformity is good, and parsing accuracy is high, is analyzed suitable for developer
APP and data.
Brief description of the drawings
The present invention has drawings described below:
The flow chart of Fig. 1 data types processing.
The flow chart of Fig. 2 classes processing.
The flow chart of Fig. 3 attributes processing.
The flow chart of Fig. 4 variables processing.
The flow chart of Fig. 5 object types processing.
Embodiment
The present invention is described in further detail below in conjunction with attached drawing.
As shown in Fig. 1~5, the positive automatic parsing strategy of iOS data of the present invention, includes the following steps:
Step 1, input data;
Step 2, judge the species of data, be transferred to corresponding resolver, or manually select the species of data, be transferred to corresponding parsing
Device;
Step 3, presupposed information is read;
Step 4, information integration or traversal processing carry out positive automatic parsing;
Step 5, handling result is returned.
Based on the above technical solutions, the species of the data includes:Data type, class, attribute, variable, object
Type;
Corresponding resolver includes:Data type resolver, class resolver, attribute resolver, variable resolution device, object class
Type resolver.
Based on the above technical solutions, for data type,
The reading presupposed information includes:Read preset kind map, including oc type of foundation and base data type;
Described information is integrated or traversal processing includes:Data type is parsed, is oc classes by data type conversion according to type map
Type;
The return handling result includes:Judging whether to change successfully, successful then return is changed successfully, and returned data, otherwise,
Return to convert failed.
Based on the above technical solutions, for class,
The reading presupposed information includes:Class essential information is read, produces the object for including category information, reads class name, superclass, matchmaker
The information such as body class;
Described information is integrated or traversal processing includes:Traversal reads generic attribute, and traversal reads class variable, and traversal reads class method,
Traversal reads superclass information, and category information storage object is produced according to above- mentioned information;
The return handling result includes:Produce category information layout.
Based on the above technical solutions, the traversal reads generic attribute, by calling attribute resolver to realize.
Based on the above technical solutions, the traversal reads class variable, by calling variable resolution device to realize.
Based on the above technical solutions, for attribute,
The reading presupposed information includes:Reading attributes essential information, reading attributes name key, reading attributes type, reading attributes
Protocol information, reading attributes are set, read method;
Described information is integrated or traversal processing includes:According to type reading attributes category information;
The return handling result includes:Attribute storage object is produced according to information above, produces attribute layout.
Based on the above technical solutions, the reading attributes type, by calling object type resolver to realize.
Based on the above technical solutions, for variable,
The reading presupposed information includes:Variable essential information is read, reads variable name key, reads types of variables,
Described information is integrated or traversal processing includes:Variable storage object is produced according to information above;
The return handling result includes:Produce variable layout.
Based on the above technical solutions, the reading types of variables, by calling object type resolver to realize.
Based on the above technical solutions, for object type,
The reading presupposed information includes:Set according to user and read presupposed information, or directly skipped;
Described information is integrated or traversal processing includes:Attribute type is obtained according to ocruntime, presetting map according to type produces
The corresponding enumerated value of type;
The return handling result includes:Return to analysis result.
The content not being described in detail in this specification belongs to the prior art known to professional and technical personnel in the field.
Claims (10)
1. the positive automatic parsing strategy of a kind of iOS data, it is characterised in that include the following steps:
Step 1, input data;
Step 2, judge the species of data, be transferred to corresponding resolver, or manually select the species of data, be transferred to corresponding parsing
Device;
Step 3, presupposed information is read;
Step 4, information integration or traversal processing carry out positive automatic parsing;
Step 5, handling result is returned.
2. the positive automatic parsing strategy of iOS data as claimed in claim 1, it is characterised in that:The species of the data includes:
Data type, class, attribute, variable, object type;
Corresponding resolver includes:Data type resolver, class resolver, attribute resolver, variable resolution device, object class
Type resolver.
3. the positive automatic parsing strategy of iOS data as claimed in claim 2, it is characterised in that:For data type,
The reading presupposed information includes:Read preset kind map, including oc type of foundation and base data type;
Described information is integrated or traversal processing includes:Data type is parsed, is oc classes by data type conversion according to type map
Type;
The return handling result includes:Judging whether to change successfully, successful then return is changed successfully, and returned data, otherwise,
Return to convert failed.
4. the positive automatic parsing strategy of iOS data as claimed in claim 2, it is characterised in that:For class,
The reading presupposed information includes:Class essential information is read, produces the object for including category information, reads class name, superclass, matchmaker
The information such as body class;
Described information is integrated or traversal processing includes:Traversal reads generic attribute, and traversal reads class variable, and traversal reads class method,
Traversal reads superclass information, and category information storage object is produced according to above- mentioned information;
The return handling result includes:Produce category information layout.
5. the positive automatic parsing strategy of iOS data as claimed in claim 4, it is characterised in that:The traversal reads generic attribute,
By calling attribute resolver to realize;
The traversal reads class variable, by calling variable resolution device to realize.
6. the positive automatic parsing strategy of iOS data as claimed in claim 2, it is characterised in that:For attribute,
The reading presupposed information includes:Reading attributes essential information, reading attributes name key, reading attributes type, reading attributes
Protocol information, reading attributes are set, read method;
Described information is integrated or traversal processing includes:According to type reading attributes category information;
The return handling result includes:Attribute storage object is produced according to information above, produces attribute layout.
7. the positive automatic parsing strategy of iOS data as claimed in claim 6, it is characterised in that:The reading attributes type, leads to
Cross the realization of calling object type resolver.
8. the positive automatic parsing strategy of iOS data as claimed in claim 2, it is characterised in that:For variable,
The reading presupposed information includes:Variable essential information is read, reads variable name key, reads types of variables,
Described information is integrated or traversal processing includes:Variable storage object is produced according to information above;
The return handling result includes:Produce variable layout.
9. the positive automatic parsing strategy of iOS data as claimed in claim 8, it is characterised in that:The reading types of variables, leads to
Cross the realization of calling object type resolver.
10. the positive automatic parsing strategy of iOS data as claimed in claim 2, it is characterised in that:For object type,
The reading presupposed information includes:Set according to user and read presupposed information, or directly skipped;
Described information is integrated or traversal processing includes:Attribute type is obtained according to ocruntime, presetting map according to type produces
The corresponding enumerated value of type;
The return handling result includes:Return to analysis result.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711176656.9A CN107977226A (en) | 2017-11-22 | 2017-11-22 | A kind of positive automatic parsing strategy of iOS data |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711176656.9A CN107977226A (en) | 2017-11-22 | 2017-11-22 | A kind of positive automatic parsing strategy of iOS data |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107977226A true CN107977226A (en) | 2018-05-01 |
Family
ID=62011025
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711176656.9A Pending CN107977226A (en) | 2017-11-22 | 2017-11-22 | A kind of positive automatic parsing strategy of iOS data |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107977226A (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110213791A1 (en) * | 2006-11-20 | 2011-09-01 | Akash Jain | Creating data in a data store using a dynamic ontology |
CN104750468A (en) * | 2013-12-26 | 2015-07-01 | 北京亿阳信通科技有限公司 | Server side topological data conversion method and device |
CN105718515A (en) * | 2016-01-14 | 2016-06-29 | 神策网络科技(北京)有限公司 | Data storage system and method and data analysis system and method |
-
2017
- 2017-11-22 CN CN201711176656.9A patent/CN107977226A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110213791A1 (en) * | 2006-11-20 | 2011-09-01 | Akash Jain | Creating data in a data store using a dynamic ontology |
CN104750468A (en) * | 2013-12-26 | 2015-07-01 | 北京亿阳信通科技有限公司 | Server side topological data conversion method and device |
CN105718515A (en) * | 2016-01-14 | 2016-06-29 | 神策网络科技(北京)有限公司 | Data storage system and method and data analysis system and method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106294673B (en) | Method and system for analyzing log data in real time by user-defined rule | |
CN110955416A (en) | Interface document generation method, device, equipment and computer storage medium | |
CN104158836A (en) | Method for rendering mobile application interface through data | |
US10743183B2 (en) | Method and device for realizing wireless access point connection authentication | |
CN107783780B (en) | Code review method and system | |
CN109446155B (en) | Intelligent station description file import and export configuration method and system | |
CN104317909A (en) | Method and device for verifying data of points of interest | |
CN110674083A (en) | Workflow migration method, device, equipment and computer readable storage medium | |
CN109062906B (en) | Translation method and device for program language resources | |
CN105447198A (en) | Convenient page script importing method and device | |
CN112083919A (en) | YAML template-based target service code generation method and device | |
CN111639275A (en) | Routing information processing method and device, electronic equipment and computer storage medium | |
EP2563061A1 (en) | Data cut-over method and apparatus | |
CN115061912A (en) | Test case generation and test method, system and medium | |
CN106919374B (en) | Script generation method and device | |
CN104601627A (en) | Server, terminal, and file online processing method and system | |
CN113887442A (en) | OCR training data generation method, device, equipment and medium | |
CN107977226A (en) | A kind of positive automatic parsing strategy of iOS data | |
CN109542408B (en) | Intelligent template configuration method and device | |
CN111240681B (en) | Conversion method and device for different programming languages | |
CN106648912B (en) | Modularization method and device for data processing in data acquisition platform | |
CN107861725B (en) | iOS data reverse automatic analysis strategy | |
CN109710808A (en) | A kind of analytic method of XML file, system, device and readable storage medium storing program for executing | |
CN109918633B (en) | Information quick filling method and terminal | |
CN113792017A (en) | Method and system for checking template content imported into excel |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180501 |