[XTEND] Iteration over a List [message #526403] |
Sat, 10 April 2010 09:09  |
Eclipse User |
|
|
|
Hi,
I'm having a little issue with Lists in xtend. Here is my problem:
I have these functions:
String transformDec(ada::single_task_declaration task) :
"task "+task.identifier+" is\n"+task.entryDec.transformDec()
+"end "+task.identifier+";\n"
;
String transformDec(ada::entry_declaration entry) :
"entry "+entry.identifier+";\n"
;
entryDec is a List of objects of type entry_declaration and the generated code is like this:
task Component_acces1 is
[entry r1_reponsePositive;
, entry r1_reponseNegative;
, entry r1_voitureArrive;
]end Component_acces1;
I don't need the brackets and commas, i want it to be like this :
task Component_acces1 is
entry r1_reponsePositive;
entry r1_reponseNegative;
entry r1_voitureArrive;
end Component_acces1;
Your help is much appreciated!
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03221 seconds