Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Best way to check if an inferred type is part of the model
Best way to check if an inferred type is part of the model [message #1722705] Mon, 08 February 2016 12:28 Go to next message
herve giraud is currently offline herve giraudFriend
Messages: 6
Registered: February 2016
Junior Member
Hi,

I have a DSL that looks like this:

Entity:
  'entity' name=ValidID '{'
          properties+=Property*
  '}';

Property:
  type=JvmTypeReference name=ValidID;

Message:
  'message' name=ValidID '{'
    properties+=Property*
'}';


and I subclass AbstractModelInferrer so any Entity can be seen as a JVM type.

But now, I need to know if the properties of a message are from the JVM or are part of the DSL.
What is the best way to get that information ?

Thanks
Herve
Re: Best way to check if an inferred type is part of the model [message #1722707 is a reply to message #1722705] Mon, 08 February 2016 12:50 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14076
Registered: July 2009
Senior Member
did you have a look at jvmmodelassociations? it should give you a sourceelement is the jvmelement is derived

Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Best way to check if an inferred type is part of the model [message #1722765 is a reply to message #1722707] Mon, 08 February 2016 22:39 Go to previous message
herve giraud is currently offline herve giraudFriend
Messages: 6
Registered: February 2016
Junior Member
Thanks, I will try
Previous Topic:Xcore with xtext-maven-plugin: unmapped ecore model path
Next Topic:Handling XBase references to overloaded signatures outside of XBlockExpressions
Goto Forum:
  


Current Time: Thu Oct 21 12:48:13 GMT 2021

Powered by FUDForum. Page generated in 0.01508 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top