Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » [Xtend] Declaration of a List in List
[Xtend] Declaration of a List in List [message #650522] Tue, 25 January 2011 12:18 Go to next message
Rubén Porras Campo is currently offline Rubén Porras CampoFriend
Messages: 67
Registered: July 2009
Member
Hi,

it is possible to define an Extension in Xtend that returns a List in List? Or one that accepts a List in List as input parameter?

Example for a normal list:

List [Object] foo(Object this) :
{this}
;

Now, how should I write the return type for the following function?

???? foo(Object this) :
{ {this}, {this} }
;

Thanks.
Re: [Xtend] Declaration of a List in List [message #650524 is a reply to message #650522] Tue, 25 January 2011 12:24 Go to previous message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14735
Registered: July 2009
Senior Member
Hello Ruben

Xtend Collections are kind of built in and do not allow List[List[Object]] but as a workaround List[Object] should help

~Christian


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Day Job: https://www.everest-systems.com
Previous Topic:[Acceleo 3l] Generate plugin
Next Topic:Problems integrating a workflow in a plugin
Goto Forum:
  


Current Time: Wed Dec 04 03:24:13 GMT 2024

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

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

Back to the top