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 Friend
Messages: 40
Registered: July 2009

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) :

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

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

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: 7873
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

Previous Topic:[Acceleo 3l] Generate plugin
Next Topic:Problems integrating a workflow in a plugin
Goto Forum:

Current Time: Mon Nov 30 11:48:40 GMT 2015

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

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