Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » [Xtend] Is there a type name for collections of collections?
[Xtend] Is there a type name for collections of collections? [message #716490] Wed, 17 August 2011 14:45 Go to next message
Peter Keller is currently offline Peter KellerFriend
Messages: 14
Registered: October 2009
Junior Member
Dear all,

I would like to be able to define the return type of a recursive extension as a list of lists something like this:

List[List] myExtension ():

to avoid having to cast the members of the returned value to List in the caller. Is this possible? The above construct gives:

Mismatched input 'List' expecting Identifier on line 110

Or maybe there is another way of doing this?

Thanks for any hints,

[Updated on: Wed, 17 August 2011 14:46]

Report message to a moderator

Re: [Xtend] Is there a type name for collections of collections? [message #716541 is a reply to message #716490] Wed, 17 August 2011 16:25 Go to previous message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14390
Registered: July 2009
Senior Member

not this is not possible
the only thing you can do is to use List[Object]
of course this is not typesafe


Need professional support for Xtext, Xpand, EMF?
Go to:
Twitter : @chrdietrich
Blog :
Previous Topic:[ACCELEO3] Tab,Tabulator problems
Next Topic:[JET] Select (with dynamic variable) difference from v0.8.1 to v1.1.1 error No Children
Goto Forum:

Current Time: Sun Nov 27 15:53:24 GMT 2022

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

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

Back to the top