Item request has been placed! ×
Item request cannot be made. ×
loading  Processing Request

TraitRecordJ: A programming language with traits and records

Item request has been placed! ×
Item request cannot be made. ×
loading   Processing Request
  • معلومة اضافية
    • Contributors:
      Lorenzo Bettini; Ferruccio Damiani; Ina Schaefer; Fabio Strocco
    • الموضوع:
      2013
    • Collection:
      Università degli studi di Torino: AperTo (Archivio Istituzionale ad Accesso Aperto)
    • نبذة مختصرة :
      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.
    • File Description:
      STAMPA
    • Relation:
      info:eu-repo/semantics/altIdentifier/wos/WOS:000317544500007; volume:78; issue:5; firstpage:521; lastpage:541; numberofpages:21; journal:SCIENCE OF COMPUTER PROGRAMMING; http://hdl.handle.net/2318/92836; info:eu-repo/semantics/altIdentifier/scopus/2-s2.0-84875210309
    • الرقم المعرف:
      10.1016/j.scico.2011.06.007
    • Rights:
      info:eu-repo/semantics/openAccess
    • الرقم المعرف:
      edsbas.C4D9E4B3