|
| Re: [ECL] Finding out "visited" features of an ECL rule [message #730870 is a reply to message #730189] |
Thu, 29 September 2011 08:23   |
|
Hello Philip,
I am not the Epsilon expert but imho the short answer is yes. As I see it you would have to invoke your ecl module via java (i.e. stand alone mode). All Epsilon modules (in your case org.eclipse.epsilon.ecl.EclModule) have a parse method. The argument to this method is the ecl file with the match rules. After you have parsed the source the AST (abstract syntax tree) is populated. You could then access the AST and extract the metamodel elements referenced by each rule. You would have to take some time to understand the AST in order to find the info you are looking for.
However, is running the match every time you make a change so "expensive"? Depending on your model editor you could listen the save event and launch the match ant each time or something similar.
Best regards,
Horacio
Horacio Hoyos Rodriguez
EngD Student
University Of York
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.06439 seconds