首页> 外文会议>Software composition >Method Shells: Avoiding Conflicts on Destructive Class Extensions by Implicit Context Switches
【24h】

Method Shells: Avoiding Conflicts on Destructive Class Extensions by Implicit Context Switches

机译:方法外壳:通过隐式上下文切换避免在破坏性类扩展上发生冲突

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

摘要

We propose method shells, which is a module system for avoiding conflicts on customization by language mechanisms such as aspects in Aspect J and open classes in Ruby. These mechanisms allow programmers to customize a library without rewriting original source code but by only describing differences in a separate file. We call these mechanisms destructive class extensions. A problem with destructive class extensions is conflicts on customization. Different customizations may differently modify the same class. To address this problem, we propose a new module system named method shells. With this system, programmers can avoid conflicts since the module system automatically switches a set of customizations that has to be applied together according to the contexts declared by programmers. We present the idea of this module system and then its formal semantics. We also present an extension of Java that supports method shells.
机译:我们提出了方法外壳,它是一个模块系统,可避免语言机制(如Aspect J中的方面和Ruby中的开放类)在自定义上发生冲突。这些机制允许程序员自定义库,而无需重写原始源代码,而仅通过在单独的文件中描述差异即可。我们称这些机制为破坏性的类扩展。破坏性类扩展的问题是定制冲突。不同的自定义项可以不同地修改同一类。为了解决这个问题,我们提出了一个新的名为方法壳的模块系统。使用此系统,程序员可以避免冲突,因为模块系统会根据程序员声明的上下文自动切换必须一起应用的一组定制。我们提出了这个模块系统的思想,然后是它的形式语义。我们还介绍了支持方法外壳程序的Java扩展。

著录项

  • 来源
    《Software composition》|2013年|49-64|共16页
  • 会议地点 Budapest(HU)
  • 作者单位

    The University of Tokyo, Japan;

    The University of Tokyo, Japan;

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

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号