Effective Strategic Programming for Java Developers

Emilie Balland 1 Pierre-Etienne Moreau 2 Antoine Reilles 2
2 PAREO - Formal islands: foundations and applications
INRIA Lorraine, LORIA - Laboratoire Lorrain de Recherche en Informatique et ses Applications
Abstract : In object programming languages, the Visitor design pattern allows separation of algorithms and data-structures. When applying this pattern to tree-like structures, programmers are always confronted with the difficulty of making their code evolve. One reason is that the code implementing the algorithm is interwound with the code implementing the traversal inside the Visitor. When implementing algorithms such as data analyses or transformations, encoding the traversal directly into the algorithm turns out to be cumbersome as this type of algorithm only focuses on a small part of the data-structure model (e.g., program optimization). Unfortunately, typed programming languages like Java do not offer simple solutions for expressing generic traversals. Rewrite-based languages like ELAN or Stratego have introduced the notion of strategies to express both generic traversal and rule application control in a declarative way. Starting from this approach, our goal was to make the notion of strategic programming available in a widely used language such as Java and thus to offer generic traversals in typed Java structures. In this paper, we present the strategy language SL that provides programming support for strategies in Java.
Type de document :
Article dans une revue
International Journal on Software - Practice and Experience, 2014, Software: Practice and Experience, 44 (2), pp.34. 〈http://onlinelibrary.wiley.com/doi/10.1002/spe.2159/abstract〉. 〈10.1002/spe.2159〉
Liste complète des métadonnées

Littérature citée [47 références]  Voir  Masquer  Télécharger

https://hal.inria.fr/hal-01265319
Contributeur : Pierre-Etienne Moreau <>
Soumis le : lundi 1 février 2016 - 08:53:14
Dernière modification le : mardi 25 octobre 2016 - 16:57:17
Document(s) archivé(s) le : vendredi 11 novembre 2016 - 22:45:14

Fichier

final.pdf
Fichiers produits par l'(les) auteur(s)

Identifiants

Collections

Citation

Emilie Balland, Pierre-Etienne Moreau, Antoine Reilles. Effective Strategic Programming for Java Developers. International Journal on Software - Practice and Experience, 2014, Software: Practice and Experience, 44 (2), pp.34. 〈http://onlinelibrary.wiley.com/doi/10.1002/spe.2159/abstract〉. 〈10.1002/spe.2159〉. 〈hal-01265319〉

Partager

Métriques

Consultations de la notice

236

Téléchargements de fichiers

106