Skip to main content



      Home
Home » Modeling » TMF (Xtext) » Tuning code generation
Tuning code generation [message #952869] Sun, 21 October 2012 17:19
Eclipse UserFriend
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 Jul 10 00:15:28 EDT 2025

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

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

Back to the top