发明名称 Method and apparatus for extending a program element in a dynamically typed programming language
摘要 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.
申请公布号 US6925640(B2) 申请公布日期 2005.08.02
申请号 US20010977508 申请日期 2001.10.12
申请人 SUN MICROSYSTEMS, INC. 发明人 ALLISON DAVID S.
分类号 G06F9/42;G06F9/44;(IPC1-7):G06F9/44 主分类号 G06F9/42
代理机构 代理人
主权项
地址