主权项 |
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. |