发明名称 System and method for accessing meta-data in a dynamically typed array-based language
摘要 A class definition syntax that leverages the array and math-oriented nature of a dynamically typed array-based programming language is discussed. Some embodiments of the present invention provides a mechanism for using meta-data to define a class implemented in the dynamically typed array-based programming language. The meta-data provide an easy way to provide class definitions and allow a user to access the class definitions from objects. The meta-data also support extension of class definitions without introducing backward incompatibility.
申请公布号 US9395963(B1) 申请公布日期 2016.07.19
申请号 US200711890646 申请日期 2007.08.06
申请人 The MathWorks, Inc. 发明人 Foti David A.
分类号 G06F9/45;G06F17/30;G06F9/44 主分类号 G06F9/45
代理机构 Harrity & Harrity, LLP 代理人 Harrity & Harrity, LLP
主权项 1. A non-transitory computer-readable storage medium storing instructions, the instructions comprising: one or more instructions which, when executed by a processor of a device, cause the processor to: process code written in a first language, the first language: including syntax for defining and interacting with an object through metadata, the metadata: being associated with a class of the object, being written in a second language, and specifying, during compilation, how to access objects of the class;compile, using information associated with the metadata and information indicating how data for the object is stored, accessed, or manipulated, the code to create a compiled class;create an instance of the compiled class;receive, from an entity, a request to access the instance of the compiled class;receive, based on the request and based on accessing a property of particular metadata from the compiled class, information regarding how to access data associated with the instance of the compiled class, the particular metadata providing the information regarding how to access the data associated with the instance of the compiled class,the particular metadata providing a value, used to identify the instance of the compiled class, to the entity, andthe particular metadata being referenced via a metaclass;access, based on the information regarding how to access the data associated with the instance of the compiled class, the data associated with the instance of the compiled class; anduse the compiled code to interact with another object.
地址 Natick MA US