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
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: 14588
Registered: July 2009
Senior Member

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.


Twitter : @chrdietrich
Blog :
Previous Topic:[MWE2] Workflow execution fails randomly
Next Topic:[JET] Passing parameters from one method to another
Goto Forum:

Current Time: Fri Dec 01 23:27:54 GMT 2023

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

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

Back to the top