Abstract | ||
---|---|---|
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. |
Year | DOI | Venue |
---|---|---|
2005 | 10.1145/1066677.1066965 | SAC |
Keywords | Field | DocType |
selective method combination,multiple method,abstract subclass,uniform extension,method lookup,method call,formal parameter type,hygienic mixins,standard java virtual machine,mixin-based composition,source code,implementation,expressive power | Programming language,Existential quantification,Mixin,Computer science,Source code,Expressive power,Java,Java virtual machine | Conference |
ISBN | Citations | PageRank |
1-58113-964-0 | 2 | 0.37 |
References | Authors | |
9 | 2 |
Name | Order | Citations | PageRank |
---|---|---|---|
Tetsuo Kamina | 1 | 170 | 15.50 |
Tetsuo Tamai | 2 | 334 | 33.27 |