Extending a scripting language to provide an object hierarchy
First Claim
1. A method of generating programmatically a pointer to a super implementation of a method in a programming language that is not a class-based object-oriented programming (OOP) language, comprising:
- receiving, using a processor, a call to a function associated with a current function and wherein the function is configured to cause a pointer to a super implementation of an inherited method to be inserted into the current function, wherein the super implementation comprises the method as defined (a) at a nearest node to the current function, traversing up the hierarchy, at which the method was last overwritten, if the method was overwritten previously or (b) in the event the method has not been overwritten since being first defined the node at which it was first defined;
traversing up, in response to the call, a hierarchy of functions, the hierarchy including one or more parent nodes each representing a parent function and each having one or more child nodes, each child node representing a function that inherits the methods of the corresponding parent node of which it is a child, until the super implementation of the inherited method is found; and
inserting programmatically into a corresponding location in the current function a programmatically created pointer to the super implementation.
1 Assignment
0 Petitions
Accused Products
Abstract
Generating programmatically a pointer to a super implementation of a method in a programming language that is not a class-based object-oriented programming (OOP) language is disclosed. A hierarchy of functions, the hierarchy including one or more parent nodes each representing a parent function and each having one or more child nodes, each child node representing a function that inherits the methods of the corresponding parent node of which it is a child, is traversed until a super implementation of an inherited method is found. A programmatically created pointer to the super implementation is inserted programmatically into a corresponding location in a current function.
43 Citations
18 Claims
-
1. A method of generating programmatically a pointer to a super implementation of a method in a programming language that is not a class-based object-oriented programming (OOP) language, comprising:
-
receiving, using a processor, a call to a function associated with a current function and wherein the function is configured to cause a pointer to a super implementation of an inherited method to be inserted into the current function, wherein the super implementation comprises the method as defined (a) at a nearest node to the current function, traversing up the hierarchy, at which the method was last overwritten, if the method was overwritten previously or (b) in the event the method has not been overwritten since being first defined the node at which it was first defined; traversing up, in response to the call, a hierarchy of functions, the hierarchy including one or more parent nodes each representing a parent function and each having one or more child nodes, each child node representing a function that inherits the methods of the corresponding parent node of which it is a child, until the super implementation of the inherited method is found; and inserting programmatically into a corresponding location in the current function a programmatically created pointer to the super implementation. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11)
-
-
12. A system configured to generate programmatically a pointer to a super implementation of a method in a programming language that is not a class-based object-oriented programming (OOP) language, comprising:
-
a memory configured to store computer code defining one or more functions; and a processor coupled to the memory and configured to; receive a call to a function associated with a current function and wherein the function is configured to cause a pointer to a super implementation of an inherited method to be inserted into the current function, wherein the super implementation comprises the method as defined (a) at a nearest node to the current function, traversing up the hierarchy, at which the method was last overwritten, if the method was overwritten previously or (b) in the event the method has not been overwritten since being first defined the node at which it was first defined; traverse up, in response to the call, a hierarchy of the one or more functions, the hierarchy including one or more parent nodes each representing a parent function and each having one or more child nodes, each child node representing a function that inherits the methods of the corresponding parent node of which it is a child, until the super implementation of the inherited method is found; and insert programmatically into a corresponding location in the current function a programmatically created pointer to the super implementation. - View Dependent Claims (13, 14, 15)
-
-
16. A computer program product for generating programmatically a pointer to a super implementation of a method in a programming language that is not a class-based object-oriented programming (OOP) language, the computer program product being embodied in a non-transitory computer readable medium and comprising computer instructions for:
-
receiving a call to a function associated with a current function and wherein the function is configured to cause a pointer to a super implementation of an inherited method to be inserted into the current function, wherein the super implementation comprises the method as defined (a) at a nearest node to the current function, traversing up the hierarchy, at which the method was last overwritten, if the method was overwritten previously or (b) in the event the method has not been overwritten since being first defined the node at which it was first defined; traversing up a hierarchy of functions, the hierarchy including one or more parent nodes each representing a parent function and each having one or more child nodes, each child node representing a function that inherits the methods of the corresponding parent node of which it is a child, until the super implementation of the inherited method is found; and inserting programmatically into a corresponding location in the current function a programmatically created pointer to the super implementation. - View Dependent Claims (17, 18)
-
Specification