Tuning code generation [message #952869] |
Sun, 21 October 2012 21:19 |
Jacek Kolodziejczyk Messages: 37 Registered: July 2009 |
Member |
|
|
Hi,
I would like to create a class that would perform some integer arithmetic operations. The class constructor should have an argument extending Number class to indicate the type of numbers to be used: int, long or BigDecimal in those operations. It would be perfect to code the logic once and have it generated automatically in all three types of Number class plus being able to code it in an editor with all the features offered by XText and integrated with Java as the logic would be mix of arithmetic with other types of instructions. Can it be done in XText and how? Using Xtend and modifying code generation in it?
Thanks,
Jacek
|
|
|
Powered by
FUDForum. Page generated in 0.02556 seconds