发明授权
- 专利标题: Automatic copying by ancestor in object-oriented languages
- 专利标题(中): 祖先以面向对象语言自动复制
-
申请号: US12329775申请日: 2008-12-08
-
公开(公告)号: US08327323B2公开(公告)日: 2012-12-04
- 发明人: Karen Holtz , Eitan Marcus , Ronny Morad
- 申请人: Karen Holtz , Eitan Marcus , Ronny Morad
- 申请人地址: US NY Armonk
- 专利权人: International Business Machines Corporation
- 当前专利权人: International Business Machines Corporation
- 当前专利权人地址: US NY Armonk
- 代理机构: Cantor Colburn LLP
- 代理商 Suzanne Erez
- 主分类号: G06F9/44
- IPC分类号: G06F9/44
摘要:
A method of automatically defining a new class in a class hierarchy includes creating a descendent class that descends from one or more specified ancestor classes; sequentially analyzing each class along each inheritance path from the specified ancestor classes to a specified similar class to identify each class item in each class that is not selected from the specified ancestor classes; storing a respective pointer for each class item identified in each class that is not inherited by the class referencing the class item and associated with the class; storing a respective pointer for each class item identified in each class that is inherited and redefined by the class referencing the class item and being associated with the class if a pointer referencing the class item is not already stored; and copying each class item referenced by a stored pointer to the descendent class.
公开/授权文献
信息查询