Scala

Enrich your EMF models with Scala

Session Type: 
Standard Talk [25 minutes]
Speakers

An EMF model can be enriched with structural constraints and definitions of operations bodies and derived features. While these extensions can be implemented in plain Java, the lack of lambda expressions results in a code that is usually far from clean and concise with the expressed concern being lost among Java constructs. A common approach is to use OCL (Object Constraint Language) with the appealing short “to-the-point” expressions. Based on our experience, however, we found that using OCL in larger EMF models brings a number of shortcomings that eventually led us to look for alternatives. Some of the encountered problems are related to OCL itself and its tool support, but also to the way structural invariants are organized.

In this presentation we will show an alternative approach based on an internal DSL in Scala. By using this modern multi-paradigm programing language we can realize an internal DSL with similar features found in OCL while taking full advantage of the host language including state-of-the-art tool support.

Schedule info

Status: 
Declined

Audience

Track: 
Eclipse Technology
Experience level: 
Intermediate

Copyright © 2012 The Eclipse Foundation. All Rights Reserved.