Community
Participate
Working Groups
Build Identifier: Enhancement request: add generator aop known from MWE using org.eclipse.xpand2.GeneratorAdvice. Reproducible: Always
What concrete use case do you want to solve with this feature?
I have an existing generator that is used as a cartridge from within another generator. the original generator shall be adapted without modifying it.
Could you explain in more detail, what existing generator mens (how is it structured) and what exactly you want to modify.
the original generator generates class definitions from a model describing structural system aspects. using a second dsl, the system's behaviour is modeled. the corresponding generator generates code that implements the modeled behaviour. the behaviour-generator needs to hook into the structure-generator: it adds code to a class' constructor: «AROUND templates::BaseClasses::Constructor FOR Interface» «targetDef.proceed()» //behavioural code goes here «ENDAROUND» furthermore, additional methods need to be generated into the classes: «AROUND templates::BaseClasses::Methods FOR Interface» «targetDef.proceed()» //more methods «ENDAROUND»
That'S Xpand's AOP facility, which is still present.
indeed, but is it possible to specify a generator-advice with mwe2 as it is possible with mwe? I already asked this question in the forum: http://www.eclipse.org/forums/index.php?t=msg&goto=549856&
I posted a solution to the mentioned newsgroup thread.