首页> 外文会议>IEEE International Conference on Software Maintenance >Refactoring in the presence of annotations
【24h】

Refactoring in the presence of annotations

机译:在存在注释存在下重构

获取原文

摘要

Current-day programming languages include constructs to embed meta-data in a program's source code in the form of annotations. More than mere documentation, these annotations are used in modern frameworks to map source-level entities to domain-specific ones. A common example being the Hibernate Object-Relational Mapping framework that relies on annotations to declare persistence configurations. While the presence of annotations extends the base semantics of the language, it also imposes restrictions on the annotated program. In this paper we consider the manner in which annotations affect automated refactorings, and in particular how they break their behavior preservation. As refactorings, during their condition checking phase, ignore the annotation's restrictions they can no longer guarantee the preservation of the domain-specific mappings. To address this problem, we propose to make the restrictions of the annotations explicit, and use them to steer the refactoring process. A prototype extension of the Eclipse IDE's refactoring engine is used to demonstrate our approach on three annotation libraries: Java Persistence API, AspectJ5 and Simple XML serialization.
机译:当天编程语言包括以注释形式的程序源代码中的元数据嵌入元数据。不仅仅是文档,这些注释用于现代框架,将源级实体映射到特定于域的框架。一个常见的例子是依赖于注释来声明持久性配置的临时对象关系映射框架。虽然注释的存在扩展了语言的基本语义,但它也会对注释程序施加限制。在本文中,我们认为注释影响自动重构的方式,特别是它们如何破坏其行为保存。作为重构,在其状态检查阶段,忽略注释的限制,他们无法再保证维护域特定的映射。为了解决这个问题,我们建议对诠释的限制明确,并使用它们来转向重构过程。 Eclipse IDE的重构引擎的原型扩展用于展示我们在三个注释库中的方法:Java Persistence API,AspectJ5和简单的XML序列化。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号