|Programmatical creation [message #1759430]
||Tue, 11 April 2017 16:16
| Edoaurd Batot
Registered: March 2015
In order to modify OCL ASTs I would like to create an OperationCallExp to replace one I don't like (with(in) reason). I want to instantiate an "oclIsTypeOF" operation.
Creating the OperationCallExp object is made easy thanks the EcoreFactory, and modifying its fields is straight forward using Ecore eSetters. Plugin a source, changing operation code is ok.
Troubles to perform the creation happen when I try to instantiate an EOperation to fill the referredOperation field. I've tried many ways, investigated in the Ecore code and documentation, but I can't make it.
Do you have any hint where to look for in the documentation and/or code and/or test code to instantiate such EOperation from scratch (I mean, no parsing) ?
[Updated on: Tue, 11 April 2017 16:19]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.01756 seconds