发明名称 Markup language integration at runtime
摘要 Methods and apparatus for marshalling markup language objects into programming language objects in a scripting language runtime environment. A markup language integration method may be implemented in scripting runtime environments that allows the use of simple and complex markup language structures in scripts. At runtime of a script, only classes for the schema structures that are referenced by the script are generated. Document Object Model (DOM) objects may be incrementally constructed according to the schema structures referenced by the script, and bytecode may be generated corresponding to the schema structures according to class metadata for the schema structures. The bytecode may be dynamically linked in the runtime environment. The classes defined by the schema act as wrappers for the DOM objects; when an object is updated by the script, a corresponding DOM object is also updated. Type checking may be applied to catch script errors during development.
申请公布号 US9135035(B2) 申请公布日期 2015.09.15
申请号 US201313896964 申请日期 2013.05.17
申请人 Oracle International Corporation 发明人 Andres Ariel Morelli;Bergamaschi Ezequiel Mauro;Veiga Paulo Gustavo;Battistoni Gustavo
分类号 G06F9/44;G06F9/45;G06F9/455 主分类号 G06F9/44
代理机构 Meyertons, Hood, Kivlin, Kowert & Goetzel, P.C. 代理人 Kowert Robert C.;Meyertons, Hood, Kivlin, Kowert & Goetzel, P.C.
主权项 1. A system comprising: one or more processors; and a memory storing program instructions, wherein the program instructions are executable by the at least one of the one or more processors to implement: a class object module configured to load classes in a runtime environment; anda script processing module configured to: process instructions from a script comprising a plurality of instructions, wherein one or more of the plurality of instructions reference one or more classes defined by respective markup language structures in a markup language schema that includes markup language structures for a plurality of classes;determine, during said processing instructions from the script, that a current one of the plurality of instructions being processed indicates that an instance of one of the one or more classes that is referenced by the current instruction is to be created; andgenerate a request for the class referenced by the current instruction in response to said determining;wherein the class object module is configured to, in response to said request: obtain class metadata for the class referenced by the current instruction;generate an instance of the class as a class object according to the class metadata for the class; andload the class object into the runtime environment;wherein the script processing module is configured to continue said processing instructions from the script subsequent to said generating the request.
地址 Redwood City CA US