Skip to main content



      Home
Home » Modeling » M2T (model-to-text transformation) » [ACCELEO] fonction standard (fonction prédefinis)(salut SVP quels sont les fonction prédifinis dans acceleo??)
[ACCELEO] fonction standard (fonction prédefinis) [message #671178] Mon, 16 May 2011 23:10 Go to next message
Eclipse UserFriend
i need some standard functions to complete my work but i cant find any one just if you can give the function like hasNexte()
Re: [ACCELEO] fonction standard (fonction prédefinis) [message #671241 is a reply to message #671178] Tue, 17 May 2011 05:11 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

The available operations in Acceleo can be found here and there.
Now, if you are in the middle of an iteration on a collection and if you want to know if there are other elements, you can use something like this:
[for (aString : String | mySequenceOfString)]
[if (i < mySequenceOfString->size())]not the end[/if]
[/for]


The variable named "i" is available inside of a for in order to know the current iteration on the collection.

Stephane Begaudeau, Obeo
--
Twitter: @sbegaudeau
Acceleo wiki: http://wiki.eclipse.org/Acceleo
Blogs: http://stephanebegaudeau.tumblr.com & http://sbegaudeau.tumblr.com

[Updated on: Tue, 17 May 2011 05:12] by Moderator

Re: [ACCELEO] fonction standard (fonction prédefinis) [message #671950 is a reply to message #671241] Thu, 19 May 2011 08:39 Go to previous message
Eclipse UserFriend
thank you very much
Previous Topic:XPand Multiplicity
Next Topic:[xpand, uml2] Support for RSA 8
Goto Forum:
  


Current Time: Sun May 11 07:46:20 EDT 2025

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

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

Back to the top