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: 14665
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
Previous Topic:[Acceleo 3l] Generate plugin
Next Topic:Problems integrating a workflow in a plugin
Goto Forum:
  


Current Time: Fri Apr 19 23:34:38 GMT 2024

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

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

Back to the top