this time I have a tricky question. The scenario is the following. I have a language LangA that has a lot of concepts and a generator that generates a XML based format. Then I have a second LangB that has only a couple of concepts but they need to have a reference to a root concept of LangA and then generates a lot of java code from these concept definitions. In LangA we define a path to a XSD file that contains type definitions that are necessary in the generation of LangA but more important for the generation of LangB we generate Java classes with JAXB before the code generation step of LangB.
My question is now how can I define a reference in LangB to a method of the Java Classes generated by JAXB? I know how the method names a created so I can generate the right string (e.g. example.setNumber(42) ) but this string can not be resolved in the generation step later on so I get errors like this:
couldn't resolve reference 'baseMethodDeclaration' from setNumber
-- cannot resolve reference by string: 'setNumber'
-- was input: r:aa428a52-ffdb-4723-a0bf-3a9f74ddda58(LangB.sandbox)/2076007902508729230
-- was template: r:e09fd805-01ff-4ac7-902e-fd3e4dca832d(LangB.generator.template.main@generator)/7040802249638737330
Has anyone done something like this an point me in the right direction?