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

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


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

Current Time: Mon Mar 04 03:01:10 GMT 2024

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

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

Back to the top