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
Ruben  is currently offline Ruben
Messages: 40
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 Dietrich
Messages: 6388
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
Previous Topic:[Acceleo 3l] Generate plugin
Next Topic:Problems integrating a workflow in a plugin
Goto Forum:
  


Current Time: Fri Oct 24 09:49:10 GMT 2014

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

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