Skip to main content



      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 05:04 Go to next message
Eclipse UserFriend
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 05:08] by Moderator

Re: [Xpand]define of the return type [message #659694 is a reply to message #659683] Tue, 15 March 2011 05:42 Go to previous message
Eclipse UserFriend
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
Previous Topic:[MWE2] Workflow execution fails randomly
Next Topic:[JET] Passing parameters from one method to another
Goto Forum:
  


Current Time: Fri May 09 00:02:42 EDT 2025

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

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

Back to the top