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 10:45 Go to next message
Peter Keller is currently offline Peter Keller
Messages: 13
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,
Peter.

[Updated on: Wed, 17 August 2011 10: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 12:25 Go to previous message
Christian Dietrich is currently offline Christian Dietrich
Messages: 6202
Registered: July 2009
Senior Member
Hi,

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

~Christian
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: Thu Aug 21 10:12:42 EDT 2014

Powered by FUDForum. Page generated in 0.01940 seconds