Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » [Acceleo] Any plans for MTL->Java codegen?
[Acceleo] Any plans for MTL->Java codegen? [message #1264679] Wed, 05 March 2014 12:08 Go to next message
Adrian Price is currently offline Adrian PriceFriend
Messages: 61
Registered: July 2009
Member
Good day m2t,

Are there any plans to implement a Java code generator for MTL templates?

I'm envisaging something akin to the way JET builder generates Java code
from JET templates, for ultra-fast transformation of user domain models.
It strikes me that the maturing OCL->Java code generator would be a good
base (although I assume the OCL converter must actually use JET to
generate its Java code).

Thanks,

Adrian Price
TIBCO Software Inc.
Re: [Acceleo] Any plans for MTL->Java codegen? [message #1264736 is a reply to message #1264679] Wed, 05 March 2014 13:05 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi

The OCL->Java generator started out using Acceleo templates, but it
rapidly became clear that the problem was really a cascade of MtoMs
followed by an MtoT. Doing MtoMs using MtoT queries is not a clever
approach. The text generation was also simple compared to its queries so
the OCL to Java is currently pure Java code. Once we have the main OCL
mappings defined as and autogenerated from transformations, we might
reimplement the code generator using transformations too; don't hold
your breath.

But in principle extending the OCL to Java generator is sensible.

It is already extended for the QVTi code generator; ? the only
transformation language that compiles to Java ?

Regards

Ed Willink


On 05/03/2014 12:08, Adrian Price wrote:
> Good day m2t,
>
> Are there any plans to implement a Java code generator for MTL templates?
>
> I'm envisaging something akin to the way JET builder generates Java
> code from JET templates, for ultra-fast transformation of user domain
> models. It strikes me that the maturing OCL->Java code generator would
> be a good base (although I assume the OCL converter must actually use
> JET to generate its Java code).
>
> Thanks,
>
> Adrian Price
> TIBCO Software Inc.
Re: [Acceleo] Any plans for MTL->Java codegen? [message #1264826 is a reply to message #1264736] Wed, 05 March 2014 14:35 Go to previous message
Adrian Price is currently offline Adrian PriceFriend
Messages: 61
Registered: July 2009
Member
Hi Ed,

Thanks for the quick response.

I hadn't actually looked at your OCL -> Java code so it was just a naive
guess that it might be JET, as with EMF. I'll have a closer look...

Rgds,

--A


On 05/03/2014 13:05, Ed Willink wrote:> Hi
<snip>...
Previous Topic:Ant Script for Acceleo Compiler to generate EMTL files
Next Topic:[Acceleo] how to get the type of UML attribute/property ?
Goto Forum:
  


Current Time: Tue Apr 23 16:19:55 GMT 2024

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

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

Back to the top