arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 1309.3235cs.SE
收藏

Java中Composite和Visitor实现之间的转换

Transformations between Composite and Visitor implementations in Java

Akram Ajouli, Julien Cohen, Jean-Claude Royer

摘要:

基本的自动化重构操作可以被链接以执行复杂的结构转换。这对于恢复源代码的初始架构是有用的,该源代码在其维护生命周期期间已经随着连续的演进而退化。这对于改变程序的结构也很有用,以便手头的维护任务在最初横切时变成模块化的。我们专注于程序结构根据复合和游客的设计模式,具有双重属性的模块化。我们认为这两个结构之间的基于重构的往返转换,我们研究如何转换的影响,这些模式的实现中的四个变化。我们通过计算所得到的转换的最小前提条件来验证这项研究。我们还自动化转换并将其应用于JHotDraw,在那里发生了研究的变化。

英文摘要:

Basic automated refactoring operations can be chained to perform complex structure transformations. This is useful for recovering the initial architecture of a source code which has been degenerated with successive evolutions during its maintenance lifetime. This is also useful for changing the structure of a program so that a maintenance task at hand becomes modular when it would be initially crosscutting. We focus on programs structured according to Composite and Visitor design patterns, which have dual properties with respect to modularity. We consider a refactoring-based round-trip transformation between these two structures and we study how that transformation is impacted by four variations in the implementation of these patterns. We validate that study by computing the smallest preconditions for the resulting transformations. We also automate the transformation and apply it to JHotDraw, where the studied variations occur.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑