Extending FeatherTrait Java']Java with Interfaces

被引:7
|
作者
Liquori, Luigi [1 ]
Spiwack, Arnaud [2 ]
机构
[1] INRIA Sophia Antipolis Mediterranee, FR-06902 Sophia Antipolis, France
[2] Ecole Normale Super, F-94235 Cachan, France
关键词
object-oriented language design; inheritance; types;
D O I
10.1016/j.tcs.2008.01.051
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
In the context of Featherweight Java by Igarashi, Pierce, and Wadler, and its recent extension FeatherTrait Java (FTJ) by the authors, we investigate classes that can be extended with trait composition. A trait is a collection of methods, i.e., behaviors without state; it can be viewed as an "incomplete stateless class" i.e., an interface with some already written behavior. Traits can be composed in any order, but only make sense when "imported" by a class that provides state variables and additional methods to disambiguate conflicting names arising between the imported traits. We introduce FeatherTrait Java with Interfaces (iFTJ), where traits need to be typechecked only once, which is necessary for compiling them in isolation, and considering them as regular types, like Java-interfaces with a behavioral content. (C) 2008 Elsevier B.V. All rights reserved.
引用
收藏
页码:243 / 260
页数:18
相关论文
共 50 条
  • [31] Automated reverse engineering of Java']Java graphical user interfaces for web migration
    Samir, Hani
    Kamel, Amr
    [J]. MEDIA CONVERGENCE: MOVING TO THE NEXT GENERATION, 2007, : 157 - 162
  • [32] Formal validation of Java']Java/Swing user interfaces with the event B method
    Cortier, Alexandre
    D'Ausbourg, Bruno
    Ait-Ameur, Yamine
    [J]. HUMAN-COMPUTER INTERACTION, PT 1, PROCEEDINGS: INTERACTION DESIGN AND USABILITY, 2007, 4550 : 1062 - +
  • [33] Generating Java']Java Interfaces for Accessing Foreign Objects in GraalVM (Work in Progress)
    Garn, Julian
    Angerer, Florian
    Moessenboeck, Hanspeter
    [J]. PROCEEDINGS OF THE 20TH ACM SIGPLAN INTERNATIONAL CONFERENCE ON MANAGED PROGRAMMING LANGUAGES AND RUNTIMES, MPLR 2023, 2023, : 173 - 178
  • [34] Stability of Java interfaces: A preliminary investigation
    Chow, Jonathan
    Tempero, Ewan
    [J]. Proceedings - International Conference on Software Engineering, 2011, : 38 - 44
  • [35] Java']Java, Java']Java everywhere
    不详
    [J]. DATAMATION, 1996, 42 (11): : 11 - 11
  • [36] Java, Java, Java
    Sabharwal, Chaman L.
    [J]. IEEE Potentials, 1998, 17 (03): : 33 - 37
  • [37] OpenJML: JML for Java 7 by extending OpenJDK
    Cok, David R.
    [J]. Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics), 2011, 6617 LNCS : 472 - 479
  • [38] Extending Java for package based access control
    Center for Information Security, Department of Computer Science, Keplinger Hall, University of Tulsa, Tulsa
    OK
    74104, United States
    [J]. Proceedings - Annual Computer Security Applications Conference, ACSAC, 2000, 2000-January : 67 - 76
  • [39] Visualization and animation of discrete event simulations using Java']Java™ graphical user interfaces
    Dalseng, JI
    [J]. SIMULATION IN INDUSTRY'2000, 2000, : 139 - 143
  • [40] Using abstract interpretation to add type checking for interfaces in Java']Java bytecode verification
    De Francesco, Nicoletta
    Lettieri, Giuseppe
    Martini, Luca
    [J]. THEORETICAL COMPUTER SCIENCE, 2010, 411 (22-24) : 2174 - 2201