Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » [Xpand]define of the return type
[Xpand]define of the return type [message #659683] Tue, 15 March 2011 09:04 Go to next message
vietron is currently offline vietronFriend
Messages: 1
Registered: November 2010
Junior Member
hi.
I want to call for a Java function in template, according to the related docs, firstly, I wrote the following code:

List[Entry<Integer,Integer>] funcname(paras)
...

then I wrote the function in another java file:

public List<Entry<Integer,Integer>> funcname(paras)
...

the return value I expected should be pairs of number, such as: 2, 3 or 3, 1.

however, in the .ext file, I got a error message:
mismatched input '<' expecting ']'

could you give me some suggestion?

[Updated on: Tue, 15 March 2011 09:08]

Report message to a moderator

Re: [Xpand]define of the return type [message #659694 is a reply to message #659683] Tue, 15 March 2011 09:42 Go to previous message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
Hi,

xpand/Xtend does not support nested generics so the returntype might be simply List[Entry]. At runtime you may Be able to downcast when iterating over the List.

~Christian


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Previous Topic:[MWE2] Workflow execution fails randomly
Next Topic:[JET] Passing parameters from one method to another
Goto Forum:
  


Current Time: Thu Apr 25 04:27:29 GMT 2024

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

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

Back to the top