首页 | 本学科首页   官方微博 | 高级检索  
     

一种基于类型传播分析的泛型实例重构方法
引用本文:陈 林,徐宝文,钱 巨,周天琳,周毓明.一种基于类型传播分析的泛型实例重构方法[J].软件学报,2009,20(10):2617-2627.
作者姓名:陈 林  徐宝文  钱 巨  周天琳  周毓明
作者单位:1. 南京大学,计算机软件新技术国家重点实验室,江苏,南京,210093;南京大学,计算机科学与技术系,江苏,南京,210093;东南大学,计算机科学与工程学院,江苏,南京,210096
2. 南京大学,计算机软件新技术国家重点实验室,江苏,南京,210093;南京航空航天大学,信息科学与技术学院,江苏,南京,210016
3. 南京大学,计算机软件新技术国家重点实验室,江苏,南京,210093;东南大学,计算机科学与工程学院,江苏,南京,210096
4. 南京大学,计算机软件新技术国家重点实验室,江苏,南京,210093;南京大学,计算机科学与技术系,江苏,南京,210093
基金项目:Supported by the National Natural Science Foundation of China under Grant Nos.90818027, 60633010 ( 国家自然科学基金); the National High-Tech Research and Development Plan of China under Grant No.2009AA01Z147 ( 国家高技术研究发展计划(863))
摘    要:重构泛型实例有利于提高软件的复用性和类型安全,但现有重构方法的时间复杂度较高,不适用于即时持续的重构.分析了变量类型传播分析方法在重构中的不足,提出了一种改进的泛型变量类型传播分析方法.该方法通过引入一种可以描述复杂参数化类型关系的泛型类型传播图,以复制节点的方式实现泛型变量属性敏感的类型分析,并通过解决别名问题来提高分析的精度.实例研究表明,可以在与程序规模呈近似线性增长的时间复杂度内实施重构,取得了较满意的效果.

关 键 词:泛型  软件重构  类型传播分析  别名分析  软件重用
收稿时间:2008/9/24 0:00:00
修稿时间:2009/5/21 0:00:00

Refactoring Generic Instantiations Based on Type Propagation Analysis
CHEN Lin,XU Bao-Wen,QIAN Ju,ZHOU Tian-Lin and ZHOU Yu-Ming.Refactoring Generic Instantiations Based on Type Propagation Analysis[J].Journal of Software,2009,20(10):2617-2627.
Authors:CHEN Lin  XU Bao-Wen  QIAN Ju  ZHOU Tian-Lin and ZHOU Yu-Ming
Abstract:Refactoring generic instantiation is valuable for improving reusability and type safety of software. Most of the existing approaches of refactoring legacy code are not suitable for on-line and persistent refactoring because of their complexity. This paper proposes an instantiation refactoring approach for Java programs based on an extended variable type analysis algorithm. A generic type propagation graph is constructed, and new constructs used to express generic type analysis are added to the graph, so it is suitable to do a generic variable field sensitive type analysis. The paper also discusses how to use alias information to improve the refactoring. The case study shows that the results are satisfactory.
Keywords:generic  software refactoring  type propagation analysis  alias analysis  software reuse
本文献已被 万方数据 等数据库收录!
点击此处可从《软件学报》浏览原始摘要信息
点击此处可从《软件学报》下载全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号