Method and apparatus for extending a program element in a dynamically typed programming language
First Claim
1. A method of extending a program element comprising:
- writing source code wherein said source code includes said program element;
determining if said program element is to be extended; and
extending said program element, if so, using an extend structure, wherein the extend structure is included in the source code.
2 Assignments
0 Petitions
Accused Products
Abstract
Embodiments of the present invention are directed to a method and apparatus for extending a program element in a dynamically typed programming language. In one embodiment, a program element is extended without altering the source code defining the program element. An extend structure is used to extend a program element in a particular program. In one embodiment, the program element is a function. The function is extended by adding code to be executed by the function. In another embodiment, the program element is an enumeration. The enumeration is extend by adding additional constants to the enumeration. In another embodiment, the program element is a class. In one embodiment, a class is extended by adding code to the constructor of the class. In another embodiment, a class is extended by adding member variables to the class. In yet another embodiment, a class is extended by adding member functions to the class.
-
Citations
30 Claims
-
1. A method of extending a program element comprising:
-
writing source code wherein said source code includes said program element;
determining if said program element is to be extended; and
extending said program element, if so, using an extend structure, wherein the extend structure is included in the source code. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10)
-
-
11. A program element extender comprising:
-
source code wherein said source code includes a program element; and
a determiner configured to determine if said program element is to be extended; and
an extender configured to extend said program element, if so, using an extend structure, wherein the extend structure is included in the source code. - View Dependent Claims (12, 13, 14, 15, 16, 17, 18, 19, 20)
-
-
21. A computer program product comprising:
-
a computer usable medium having computer readable program code embodied therein configured for extending a program element, comprising;
computer readable code configured to cause a computer to provide source code wherein said source code includes a program element;
computer readable code configured to cause a computer to determine if said program element is to be extended; and
computer readable code configured to cause a computer to extend said program element, if so, using an extend structure, wherein the extend structure is included in the source code. - View Dependent Claims (22, 23, 24, 25, 26, 27, 28, 29, 30)
-
Specification