Kermeta integration tutorials

How to integrate Kermeta programs with Java programs

Vincent Fontanella

Didier Vojtisek

Build : 2.1.1-SNAPSHOT 20130925-1232

Abstract

These tutorials serie demonstrates how to use the kermeta workbench in various scenarii that integrate kermeta programs with java programs.

The first serie shows how to call kermeta code from java programs.

The second serie shows how to call java compatible code from kermeta action language.


Table of Contents

Presentation
I. Calling Kermeta code from a Java program
1. Calling Kermeta code from a standalone Java program
1.1. Presentation
1.2. Generate a new Kermeta project "HelloWorldKmt"
1.3. Add a new operation
1.4. Generate the Jar file
1.5. Generate a new java project
1.6. Called a kermeta API from to the project java
2. Calling Kermeta main operations from a standalone Java program
2.1. Presentation/key points
2.2. Generate a basic jar file from the Kermeta project
3. Calling Kermeta internal code from a standalone Java program
3.1. Presentation/key points
4. Embedding Kermeta code in an Eclipse plugin
4.1. Presentation/key points
II. Calling Java code from a Kermeta program
5. Calling java static operation with kermeta extern
5.1. Presentation/key points
6. Calling EMF Java operations from Kermeta
6.1. Presentation/key points
7. Calling Groovy from Kermeta
7.1. Presentation/key points
7.2. Create and configure a kermeta project to use Groovy
7.3. Calling some simple groovy expression
7.4. Calling groovy expression on ecore model
7.5. Compile and run
8. [advanced]Using compiler ignore directive to call hand written scala code

List of Figures

1.1. Wizard selection to access of a new project kermeta
1.2. Wizard to generate a new project kermeta
1.3. Wizard to configure a pom running
1.4. Wizard selection to access of a new project java
1.5. Wizard to select libraries for the new project