Skip to content
Timur Sağlam edited this page Dec 25, 2016 · 60 revisions

EcoreMetamodelExtraction

Even though the EcoreMetamodelExtraction consists out of seven packages, the general architecture can be broken down to three parts: The parser, the intermediate model and the generator. The parser analyzes a Java project using the JDT API and extracts all the information the implicit model of the Java code contains. With these information the parser then builds an intermediate model. The generator then uses the intermediate model to build an Ecore metamodel. The Ecore metamodel is build as a tree structure out of EObjects, with a root package as container of all the elements of the metamodel. The the generator also has the ability to save the generated Ecore metamodel as an Ecore file. For this process, there are several different saving strategies available.

Intermediate Model

The intermediate model is an tree structure that contains all extracted information about a Java project. Every intermediate model has an instance of the class IntermediateModel. It contains alle the elements of the model. The tree structure starts with an ExtractedPackage as root package, which can be accessed from the IntermediateModel instance.

Accessing Intermediate Models

TODO

Creating Intermediate Models

TODO

Clone this wiki locally