ModelingValueGroup / ex-EntityClassJava

DclareForMPS example

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

EntityClassJava - An Entity to Class to Java transformation

In this example two Languages are defined, the Entities Language: picture alt

and the Classes Language:
picture alt

Rules are defined that transform instances of the Entities Language to instances of the Classes Language: picture alt

Also Rules are defined to transform instances of the Classes Language to Java (BaseLanguage) classes. picture alt

Two example entities (instances of the Entities Language) are also provided:
picture alt

The classes in the ExampleSolution/classes and ../java folders will be 'generated' by the defined Rules.
Please experiment with editing the source entities and check how the rules (reactively) change the target classes and the java classes. Also when a new entity is created in the Entities folder, it will immediately be transformed to a class in the classes folder and on its turn to a java class in the java folder. (Note that no generation is required to transform the models!!)

Overview of this complete Example: picture alt

About

DclareForMPS example

License:GNU Lesser General Public License v3.0


Languages

Language:JetBrains MPS 100.0%