首页> 外文会议>ACM symposium on Applied computing >Selective method combination in mixin-based composition
【24h】

Selective method combination in mixin-based composition

机译:基于混合蛋白的组合物中的选择性方法组合

获取原文
获取外文期刊封面目录资料

摘要

A mixin is a reusable module that provides uniform extensions and modifications to classes. It is an abstract subclass that is composable with a variety of superclasses. In mixin-based composition, however, the problem of accidental overriding arises. A method declared in a mixin may accidentally overrides its superclasses' method. To tackle this problem, we propose a new approach of method lookup that allows selective method combination; that is, when we have multiple methods with the same name and the same formal parameter types in a composition, we can select which method to execute, and which method is called when there exists a method call to super. This proposal is an extension of hygienic mixins with stronger expressive power. This proposal is implemented in McJava, an extension of Java with mixintypes. Its compilation is achieved by source code translation to Java thus making it runnable on a standard Java virtual machine.
机译:mixin是可重用的模块,可为类提供统一的扩展和修改。它是一个抽象子类,可以与各种超类组成。但是,在基于混合蛋白的合成中,会出现意外压倒的问题。在mixin中声明的方法可能偶然地覆盖其超类的方法。为了解决这个问题,我们提出了一种新的方法查找方法,该方法允许进行选择性方法组合;也就是说,当我们在一个组合中有多个具有相同名称和相同形式参数类型的方法时,我们可以选择执行哪个方法,以及在存在对super的方法调用时调用哪个方法。该建议是具有更强大表达力的卫生混合蛋白的扩展。该建议在McJava中实现,McJava是具有mixintypes的Java的扩展。它的编译是通过将源代码翻译成Java来实现的,从而使其可以在标准Java虚拟机上运行。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号