Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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] Tue, 17 May 2011 03:10 Go to next message
radwane  is currently offline radwane
Messages: 27
Registered: April 2011
Junior Member
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 09:11 Go to previous messageGo to next message
Stephane Begaudeau is currently offline Stephane Begaudeau
Messages: 413
Registered: April 2010
Location: Nantes (France)
Senior Member

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 09:12]

Report message to a moderator

Re: [ACCELEO] fonction standard (fonction prédefinis) [message #671950 is a reply to message #671241] Thu, 19 May 2011 12:39 Go to previous message
radwane  is currently offline radwane
Messages: 27
Registered: April 2011
Junior Member
thank you very much
Previous Topic:xpand
Next Topic:[xpand, uml2] Support for RSA 8
Goto Forum:
  


Current Time: Fri Oct 31 07:12:35 GMT 2014

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

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