×

Extending a scripting language to provide an object hierarchy

  • US 8,132,152 B2
  • Filed: 06/08/2007
  • Issued: 03/06/2012
  • Est. Priority Date: 06/08/2007
  • Status: Active Grant
First Claim
Patent Images

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 all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×