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: 11957
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:[Acceleo 3.1] Can't run Acceleo Module
Next Topic:[Acceleo] how to format generated java code?
Goto Forum:

Current Time: Mon May 21 03:27:13 GMT 2018

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

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

Back to the top