Propagating Class and Method Combination

Propagating Class and Method Combination
复制标题

传播类和方法组合

DOI:
10.1007/3-540-48743-3_4
复制
发表时间:
1999
期刊:
Appl. Ontology
影响因子:
--
通讯作者:
Erik Ernst
Erik Ernst
中科院分区:
--
文献类型:
--
作者:
Erik Ernst

文献摘要

参考文献

被引文献

相似文献

本文提出了一种基于mixin的类和方法组合机制,并采用块结构传播。传统上,mixin可以组合成新的类,可能合并方法的实现(如CLOS)。在我们的方法中,一个类或方法的组合操作可能导致任意数量的隐式组合。例如,可以指定一个类族的各个方面,然后将几个方面联合收割机组合成一个完整的类族。组合表达式将显式地联合收割机组合整个家族的方面,并且通过传播隐式地联合收割机组合类家族的每个成员的方面,并且再次通过传播隐式地从其方面组合每个方法。与CLOS相反,它是静态类型检查的;与其他用于高级类组合/合并/编织的系统相反,它直接集成在语言中,确保了清晰的语义和与类型系统的无缝交互。此外,在组合中使用的基本机制,线性化,形式化和推广相比,以前的presentations。
This paper presents a mixin based class and method combination mechanism with block structure propagation. Traditionally, mixins can be composed to form new classes, possibly merging the implementations of methods (as in CLOS). In our approach, a class or method combination operation may cause any number of implicit combinations. For example, it is possible to specify separate aspects of a family of classes, and then combine several aspects into a full-fledged class family. The combination expressions would explicitly combine whole-family aspects, and by propagation implicitly combine the aspects for each member of the class family, and again by propagation implicitly compose each method from its aspects. As opposed to CLOS, this is type-checked statically; and as opposed to other systems for advanced class combination/ merging/weaving, it is integrated directly in the language, ensuring a clear semantics and a seamless interaction with the type system. Moreover, the basic mechanism used in the combination, linearization, is formalized and generalized compared to previous presentions.
DOI: 10.1007/bfb0053381
发表时间: 1997-01-01
期刊: ECOOP'97: OBJECT-ORIENTED PROGRAMMING
影响因子: --
作者:
Kiczales, G;Lamping, J;Irwin, J
通讯作者: Irwin, J