-
|
To give a bit of context, I'm creating an SQL-like query language for ecore models and I'd like to implement conditions using Xbase expressions. A simple query might look similar to this: My problem is that Xbase seems to rely on Java types and instances and I currently only have access to the ecore model (.ecore) and a dynamic instance of it (.xmi), so neither a genmodel nor the generated java classes. The simplest solution would of course be to get access to the generated java classes either by requesting the user of my language to provide them or by trying to generate them on the fly. I'd like to avoid this if somehow feasible. So my question is, whether there is another (better) solution that I'm not aware of? And if not, does my proposed solution sound feasible to you? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
This approach seems to work fine so far. |
Beta Was this translation helpful? Give feedback.
-
|
@iTob191 by the way, in Edelta, https://github.com/LorenzoBettini/edelta, I use the XbaseInterpreter a lot also accessing Ecore models. |
Beta Was this translation helpful? Give feedback.
This approach seems to work fine so far.