首页> 外文会议>ECOOP 2009 -object-oriented programming >From Public to Private to Absent: Refactoring Java Programs under Constrained Accessibility
【24h】

From Public to Private to Absent: Refactoring Java Programs under Constrained Accessibility

机译:从公共到私有再到缺席:在受限可访问性下重构Java程序

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

摘要

Contemporary refactoring tools for Java aiding in the restructuring of programs have problems with respecting access modifiers such as public and private: while some tools provide hints that referenced elements may become inaccessible due to the intended restructuring, none we have tested prevent changes that alter the meaning of a program, and none take steps that counteract such alterations. To address these problems, we formalize accessibility in Java as a set of constraint rules, and show how the constraints obtained from applying these rules to a program and an intended refactoring allow us to check the preconditions of the refactoring, as well as to compute the changes of access modifiers necessary to preserve the behaviour of the refactored program. We have implemented our framework as a proof of concept in Eclipse, and demonstrated how it improves applicability and success of an important refactoring in a number of sample programs. That our approach is not limited to Java is shown by comparison with the constraint rules for C# and Eiffel.
机译:用于帮助程序重组的现代Java重构工具在尊重访问修饰符(例如公共和私有)方面存在问题:尽管某些工具提供了暗示,由于预期的重组可能无法访问被引用的元素,但我们没有测试过阻止改变含义的更改程序,没有人采取措施来抵消这种改变。为了解决这些问题,我们将Java中的可访问性形式化为一组约束规则,并展示了如何将这些规则应用于程序并进行预期的重构而获得的约束使我们能够检查重构的前提条件,并计算保留重构程序行为所必需的访问修饰符的更改。我们已经将框架实现为Eclipse中的概念证明,并演示了它如何在许多示例程序中提高了重要重构的适用性和成功率。通过与C#和Eiffel的约束规则进行比较,可以看出我们的方法不仅限于Java。

著录项

  • 来源
  • 会议地点 Genoa(IT);Genoa(IT)
  • 作者单位

    Lehrgebiet Programmiersysteme Fakultat fur Mathematik und Informatik Fernuniversitat in Hagen D-58084 Hagen;

    Lehrgebiet Programmiersysteme Fakultat fur Mathematik und Informatik Fernuniversitat in Hagen D-58084 Hagen;

  • 会议组织
  • 原文格式 PDF
  • 正文语种 eng
  • 中图分类
  • 关键词

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号