CN110716712A - Method for realizing object by character in computer programming language - Google Patents

Method for realizing object by character in computer programming language Download PDF

Info

Publication number
CN110716712A
CN110716712A CN201810772415.9A CN201810772415A CN110716712A CN 110716712 A CN110716712 A CN 110716712A CN 201810772415 A CN201810772415 A CN 201810772415A CN 110716712 A CN110716712 A CN 110716712A
Authority
CN
China
Prior art keywords
information
value
oinfo
programming language
computer programming
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
Application number
CN201810772415.9A
Other languages
Chinese (zh)
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.)
Coco (shanghai) Software Technology Co Ltd
Original Assignee
Coco (shanghai) Software Technology Co Ltd
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 Coco (shanghai) Software Technology Co Ltd filed Critical Coco (shanghai) Software Technology Co Ltd
Priority to CN201810772415.9A priority Critical patent/CN110716712A/en
Publication of CN110716712A publication Critical patent/CN110716712A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/31Programming languages or programming paradigms
    • G06F8/315Object-oriented languages

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computing Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a method for realizing an object by characters in a computer programming language. In the mainstream object-oriented computer programming language, objects are preset by programmers, but the traditional object-oriented programming mode is too heavy and heavy at present when manual intelligence such as machine learning is used.

Description

Method for realizing object by character in computer programming language
Technical Field
The invention relates to a method for realizing character objects by a computer programming language.
Background
In the mainstream object-oriented computer programming language, objects are preset by programmers, but the traditional object-oriented programming mode is too heavy and heavy at present when manual intelligence such as machine learning is used.
Disclosure of Invention
The invention relates to a method for realizing character objects by computer programming language, which comprises two object classes of an OInfo information structure object and an ONew value object, wherein the OInfo is a character object information object and records the structure information of the character object, namely: the type name of the object, the member information of the object, the type information of the object member, the array dimension information of the object member and the ONew object class are used for realizing the record of assignment.
The specific implementation mode is as follows:
there are two object classes, OInfo and ONew:
the member typeName in OInfo is used for recording the type name information of the object;
the member name in the OInfo is used for recording the name information of the object member;
the member type in the OInfo is used for recording the type information of the object member;
the member dim in OInfo is used to record the array dimension information of the object member.
The member template in the ONew is used for recording the object in the corresponding OInfo;
the value of the member in ONew is used to record the assignment of the object.
OInfo is an information object, and the following is detailed information:
class OInfo
{
public string typeName;
public string[]name;
public string[]type;
public int[]dim ;
}
ONew is a value object, and the following is detailed information:
class ONew
{
public OInfo template;
public object[]value;
}
demo is an example object, which is a traditional writing method, and the following is detailed information:
class demo
{
public int memberA;
public string[]member;
}
implementation of attribute member, taking the demo object herein as an example:
step 1, opening a new example for OInfo, and naming the new example as demoOInfo;
step 2, assigning a typeName member item in a member in the demoOInfo object to demo, wherein the demo is the type name of the new object, and the demo is the demoOInfo;
step 3, correspondingly opening a new instance array according to the number of the members of the new object, assigning values, and demooinfo. Name = newsgtring [ the number of the members of the character object is 2] { "memberA", "member" };
demooinfo. type = new string [ here the number of character object members, i.e.: 2] { "int", "string" };
demooinfo. dim = new int [ here the number of character object members, i.e.: 2] {0,1 }.
Implementation of the new instance of the character object:
step 1, opening a new instance for ONew, and naming the instance as demoONew;
and 2, assigning a value to the member template in demonew to indicate the type of the new object, wherein the value is demoOInfo, namely demonew.
And (3) assignment and value taking of a new instance of the character object are realized:
step 1: finding out the member template of the current object in demoONew, then finding out the position index item of the member Name to be assigned in OInfo. Name according to the member information in the template, and correspondingly storing the value into the member value in the new demoONew instance, and finishing the value storage;
step 2: and similarly, searching the index position to be currently subjected to value taking through name information in OInfo.

Claims (4)

1. A method for realizing objects by characters in computer programming language is characterized in that an information object (OInfo) is adopted to realize the structural information of a record object.
2. A method for realizing object by character in computer programming language is characterized in that value storage and storage steps, value taking or assignment steps are carried out on corresponding information object by using value object (ONew).
3. The information object according to claim 1, characterized in that different structure information recording the type name, type, array dimension, etc. of the object member is implemented by different members in the information object (OInfo).
4. The value object according to claim 2, characterized in that the storing of values and the taking or assigning of values to different structural information objects in the corresponding information object (OInfo) is realized by different members in the value object (ONew).
CN201810772415.9A 2018-07-13 2018-07-13 Method for realizing object by character in computer programming language Pending CN110716712A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810772415.9A CN110716712A (en) 2018-07-13 2018-07-13 Method for realizing object by character in computer programming language

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810772415.9A CN110716712A (en) 2018-07-13 2018-07-13 Method for realizing object by character in computer programming language

Publications (1)

Publication Number Publication Date
CN110716712A true CN110716712A (en) 2020-01-21

Family

ID=69208594

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810772415.9A Pending CN110716712A (en) 2018-07-13 2018-07-13 Method for realizing object by character in computer programming language

Country Status (1)

Country Link
CN (1) CN110716712A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040044686A1 (en) * 2002-08-28 2004-03-04 Shiang-Yu Lee Information object emulator
CN101661391A (en) * 2009-09-24 2010-03-03 金蝶软件(中国)有限公司 Object serializing method, object deserializing method, device and system
CN101963944A (en) * 2010-09-30 2011-02-02 用友软件股份有限公司 Object storage method and system
CN102385505A (en) * 2010-08-30 2012-03-21 北京理工大学 Software visualization method for object-oriented programming language source code

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040044686A1 (en) * 2002-08-28 2004-03-04 Shiang-Yu Lee Information object emulator
CN101661391A (en) * 2009-09-24 2010-03-03 金蝶软件(中国)有限公司 Object serializing method, object deserializing method, device and system
CN102385505A (en) * 2010-08-30 2012-03-21 北京理工大学 Software visualization method for object-oriented programming language source code
CN101963944A (en) * 2010-09-30 2011-02-02 用友软件股份有限公司 Object storage method and system

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
STEINBISS, SASCHA .ET: "A New Efficient Data Structure for Storage and Retrieval of Multiple Biosequences" *
张有东: "面向对象的编程思想的建立" *
李愚,徐永森,谢高严,DAVIDL.SHANG: "面向对象语言Transframe及其环境MagicFrame" *

Similar Documents

Publication Publication Date Title
CN107341262B (en) Serialization and deserialization method and device for object type column in database
US5937402A (en) System for enabling access to a relational database from an object oriented program
Niemueller et al. A generic robot database and its application in fault analysis and performance evaluation
CN111198940B (en) FAQ method, question-answer search system, electronic device, and storage medium
US8307015B2 (en) Decorated model architecture for efficient model-driven application development
CN104809190B (en) A kind of database access method of tree structure data
CN104239513A (en) Semantic retrieval method oriented to field data
CN111190904A (en) Method and device for hybrid storage of graph-relational database
CN103902677B (en) A kind of cross-platform data bank access method
CN102388374A (en) Method and device for data storage
CN102968373A (en) Method and device for maintaining test system
Shamim et al. A framework for generation of rules from decision tree and decision table
CN105912665A (en) Method for model conversion and data migration of Neo4j to relational database
CN109657803A (en) The building of machine learning model
CN110716712A (en) Method for realizing object by character in computer programming language
CN110956271A (en) Multi-stage classification method and device for mass data
CN108984626A (en) A kind of data processing method, device and server
CN115329753B (en) Intelligent data analysis method and system based on natural language processing
CN116502542A (en) Multi-process product key procedure identification method based on deep learning
CN108241705A (en) A kind of data insertion method and device
CN113761130A (en) System and method for assisting composition writing
CN110147396A (en) A kind of mapping relations generation method and device
US8037092B2 (en) System and method for merging manual parameters with predefined parameters
CN101887389A (en) Binary structure-based script generating method
Harezlak et al. Performance aspects of migrating a web application from a relational to a NoSQL Database

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
CB02 Change of applicant information

Address after: Room 2248, 2 / F, No.151, Keyuan Road, Zhangjiang, Pudong New Area, Shanghai, 201203

Applicant after: BAIYETE (SHANGHAI) SOFTWARE TECHNOLOGY Co.,Ltd.

Address before: 201203 building g, 258 Chenhui Road, Zhangjiang High Tech, Pudong New Area, Shanghai A102

Applicant before: BAIYETE (SHANGHAI) SOFTWARE TECHNOLOGY Co.,Ltd.

CB02 Change of applicant information
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20200121