Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Tuning code generation
Tuning code generation [message #952869] Sun, 21 October 2012 21:19
Jacek Kolodziejczyk is currently offline Jacek KolodziejczykFriend
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
Previous Topic:Cross-referencing
Next Topic:formatter that keeps original line breaks
Goto Forum:
  


Current Time: Thu Apr 25 13:03:58 GMT 2024

Powered by FUDForum. Page generated in 0.02556 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top