Class-based object-oriented features in class-less script language
First Claim
Patent Images
1. A program transformation system, comprising:
- a processor coupled to a memory, the processor configured to execute the following computer-executable components stored in the memory;
a code generation component that generates semantically equivalent code in a class-less scripting language from an object-oriented programming language representation of a hierarchy of one or more classes or interfaces anda virtual constructor component that produces a dispatch construct that captures class and/or interface method implementation to facilitate dynamic dispatch.
2 Assignments
0 Petitions
Accused Products
Abstract
Dynamic dispatch for classes and interfaces is encapsulated in a class-less scripting language. A plurality of mechanisms is employed to facilitate dynamic polymorphism. One or more target-language constructs, such as dictionary objects, prototype objects and/or derived types, are utilized to capture class and interface-method implementations. These constructs are subsequently referenced at runtime to invoke appropriate code.
60 Citations
14 Claims
-
1. A program transformation system, comprising:
-
a processor coupled to a memory, the processor configured to execute the following computer-executable components stored in the memory; a code generation component that generates semantically equivalent code in a class-less scripting language from an object-oriented programming language representation of a hierarchy of one or more classes or interfaces and a virtual constructor component that produces a dispatch construct that captures class and/or interface method implementation to facilitate dynamic dispatch. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9)
-
-
10. A method of dynamic dispatch, comprising:
-
employing at least one processor configured to execute computer-executable instructions stored in memory to perform the following acts; identifying a representation of a virtual method call in a class-less scripting language; and locating an implementation for the virtual method call at runtime in a dispatch construct that maps method names to method implementations for objects utilizing code that captures class and/or interface inheritances relationships in the language. - View Dependent Claims (11, 12)
-
-
13. A program compilation system, comprising:
-
computer-implemented means for acquiring an inheritance hierarchy of classes represented in intermediate language code; and computer-implemented means for implementing code semantics in a class-less scripting programming language; and computer-implemented means for generating a dispatch construct in the class-less scripting programming language that identifies method names and related method implementations. - View Dependent Claims (14)
-
Specification