کد مقاله کد نشریه سال انتشار مقاله انگلیسی نسخه تمام متن
433391 1441704 2013 21 صفحه PDF دانلود رایگان
عنوان انگلیسی مقاله ISI
TraitRecordJ: A programming language with traits and records
موضوعات مرتبط
مهندسی و علوم پایه مهندسی کامپیوتر نظریه محاسباتی و ریاضیات
پیش نمایش صفحه اول مقاله
TraitRecordJ: A programming language with traits and records
چکیده انگلیسی

Traits have been designed as units for fine-grained reuse of behavior in the object-oriented paradigm. Records have been devised to complement traits for fine-grained reuse of state. In this paper, we present the language TraitRecordJ, a Java dialect with records and traits. 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 introduce the language through examples and illustrate the prototypical implementation of TraitRecordJ 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 TraitRecordJ with typical IDE functionalities, and a stand-alone compiler, which translates TraitRecordJ programs into standard Java programs. As a case study, we present the TraitRecordJ implementation of a part of the software used in a web-based information system previously implemented in Java.


► We present TraitRecordJ, a Java dialect with records and traits.
► We describe its implementation in Xtext.
► We describe Xtext features for language implementation.
► We reimplement in TraitRecordJ part of a software previously developed in Java.

ناشر
Database: Elsevier - ScienceDirect (ساینس دایرکت)
Journal: Science of Computer Programming - Volume 78, Issue 5, 1 May 2013, Pages 521–541
نویسندگان
, , , ,