A Prototypical Java-like language with Records and Traits
Paper in proceeding, 2010

Traits have been designed as units of fine-grained behavior reuse in the object-oriented paradigm. In this paper, we present the language Sugared Welterweight Record-Trait Java (SWRTJ), a Java dialect with records and traits. Records have been devised to complement traits for fine-grained state reuse. Records and traits can be composed by explicit linguistic operations, allowing code manipulations to achieve fine-grained code reuse. Classes are assembled from (composite) records and traits and instantiated to generate objects. We present the prototypical implementation of SWRTJ using Xtext, an Eclipse framework for the development of programming languages as well as other domain-specific languages. Our implementation comprises an Eclipse-based editor for SWRTJ with typical IDE functionalities, and a stand-alone compiler, which translates SWRTJ programs into standard Java programs. © 2010 ACM.

Eclipse

Java

trait

type system

implementation

Author

Lorenzo Bettini

University of Turin

Ferruccio Damiani

University of Turin

Ina Schaefer

Chalmers, Computer Science and Engineering (Chalmers), Software Engineering and Technology (Chalmers)

Fabio Strocco

University of Turin

Proc. of Principles and Practice of Programming in JAVA (PPPJ 2010)

129-138
978-145030269-2 (ISBN)

Subject Categories

Software Engineering

DOI

10.1145/1852761.1852780

ISBN

978-145030269-2

More information

Created

10/7/2017