发明名称 Method and apparatus for finding terminal classes in a collection of programming language classes
摘要 One embodiment of the present invention provides a system that facilitates finding terminal classes in a collection of programming language classes, wherein a terminal class is a class that is not extended by any other class. The system operates by receiving a collection of classes. The system then adds the classes to a map of the collection of classes, wherein keys to each class in the map include each class' superclass and the interfaces each class directly implements. Next, the system analyzes a given class in the map of the collection of classes to determine if the given class extends any other class in the collection of classes. If so, the system removes this extended class from the collection of classes. Finally, the system repeats the steps of analyzing classes and removing extended classes until all remaining classes in the collection of classes are terminal classes.
申请公布号 US7543272(B1) 申请公布日期 2009.06.02
申请号 US20050165808 申请日期 2005.06.24
申请人 SUN MICROSYSTEMS, INC. 发明人 KLINE JOHN A.
分类号 G06F9/44;G06F12/00 主分类号 G06F9/44
代理机构 代理人
主权项
地址