Skip to Main Content (Press Enter)

Logo UNITO
  • ×
  • Home
  • Pubblicazioni
  • Progetti
  • Persone
  • Competenze
  • Settori
  • Strutture
  • Terza Missione

UNI-FIND
Logo UNITO

|

UNI-FIND

unito.it
  • ×
  • Home
  • Pubblicazioni
  • Progetti
  • Persone
  • Competenze
  • Settori
  • Strutture
  • Terza Missione
  1. Pubblicazioni

Xtraitj: Traits for the Java platform

Articolo
Data di Pubblicazione:
2017
Abstract:
Traits were proposed as a mechanism for fine-grained code reuse to overcome many limitations of class-based inheritance. A trait is a set of methods that is independent from any class hierarchy and can be flexibly used to build other traits or classes by means of a suite of composition operations. In this paper we present the new version of Xtraitj, a trait-based programming language that features complete compatibility and interoperability with the Java platform. Xtraitj is implemented in Xtext and Xbase, and it provides a full Eclipse IDE that supports an incremental adoption of traits in existing Java projects. The new version of Xtraitj allows traits to be accessed from any Java project or library, even if the original Xtraitj source code is not available, since traits can be accessed in their byte-code format. This allows developers to create Xtraitj libraries that can be provided in their binary only format. We detail the technique we used to achieve such an implementation; this technique can be reused in other languages implemented in Xtext for the Java platform. We formalize our traits by means of flattening semantics and we provide some performance benchmarks that show that the runtime overhead introduced by our traits is acceptable.
Tipologia CRIS:
03A-Articolo su Rivista
Keywords:
Eclipse; IDE; Implementation; Java; Trait; Software; Information Systems; Hardware and Architecture
Elenco autori:
Bettini, Lorenzo; Damiani, Ferruccio
Autori di Ateneo:
DAMIANI Ferruccio
Link alla scheda completa:
https://iris.unito.it/handle/2318/1616676
Link al Full Text:
https://iris.unito.it/retrieve/handle/2318/1616676/274127/JSS-PublishedOnline-2016-07-26-OPEN.pdf
Pubblicato in:
THE JOURNAL OF SYSTEMS AND SOFTWARE
Journal
  • Dati Generali

Dati Generali

URL

http://www.sciencedirect.com/science/article/pii/S0164121216301297
  • Utilizzo dei cookie

Realizzato con VIVO | Designed by Cineca | 25.6.1.0