...
首页> 外文期刊>Science of Computer Programming >Remodularizing Java programs for improved locality of feature implementations in source code
【24h】

Remodularizing Java programs for improved locality of feature implementations in source code

机译:重新模块化Java程序以改善源代码中功能实现的局部性

获取原文
获取原文并翻译 | 示例
           

摘要

Explicit traceability between features and source code is known to help programmers to understand and modify programs during maintenance tasks. However, the complex relations between features and their implementations are not evident from the source code of object-oriented Java programs. Consequently, the implementations of individual features are difficult to locate, comprehend, and modify in isolation. In this paper, we present a novel remodularization approach that improves the representation of features in the source code of Java programs. Both forward and reverse restructurings are supported through on-demand bidirectional restructuring between feature-oriented and object-oriented decompositions. The approach includes a feature location phase based on tracing of program execution, a feature representation phase that reallocates classes into a new package structure based on single-feature and multi-feature packages, and an annotation-based reverse transformation of code. Case studies performed on two open-source projects indicate that our approach requires relatively little manual effort and reduces tangling and scattering of feature implementations in the source code.
机译:众所周知,功能和源代码之间具有明确的可追溯性,可帮助程序员在维护任务期间理解和修改程序。但是,从面向对象的Java程序的源代码中,功能及其实现之间的复杂关系并不明显。因此,单个功能的实现很难单独定位,理解和修改。在本文中,我们提出了一种新颖的重新调制方法,该方法改进了Java程序源代码中功能的表示。通过在面向特征的分解和面向对象的分解之间进行按需双向重构,可以支持正向和反向重构。该方法包括基于程序执行跟踪的特征定位阶段,基于单功能和多功能包将类重新分配到新的包结构中的功能表示阶段,以及基于注释的代码反向转换。在两个开源项目上进行的案例研究表明,我们的方法所需的人工工作相对较少,并减少了源代码中功能实现的混乱和分散。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号