Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » ATL » Casting in ATL
Casting in ATL [message #1809769] Tue, 23 July 2019 03:58 Go to next message
Marshall Charron is currently offline Marshall CharronFriend
Messages: 72
Registered: August 2018
Member
Solved

[Updated on: Thu, 25 July 2019 10:59]

Report message to a moderator

Re: Casting in ATL [message #1830215 is a reply to message #1809769] Mon, 20 July 2020 20:47 Go to previous messageGo to next message
Burak Karaduman is currently offline Burak KaradumanFriend
Messages: 84
Registered: July 2018
Member
How did you solve?
Re: Casting in ATL [message #1830724 is a reply to message #1830215] Sat, 01 August 2020 14:18 Go to previous messageGo to next message
Dennis Wagelaar is currently offline Dennis WagelaarFriend
Messages: 589
Registered: September 2012
Location: Belgium
Senior Member

ATL does not require type casts, and will dynamically look up any attributes or methods you're trying to invoke. If you want to explicitly convert to a type, you can use:
.oclAsType(<TYPE>)

This will throw an error if the object on which you invoke oclAsType is not an instance of the specified type.


Cheers,
Dennis
Re: Casting in ATL [message #1831087 is a reply to message #1830724] Tue, 11 August 2020 12:50 Go to previous message
Burak Karaduman is currently offline Burak KaradumanFriend
Messages: 84
Registered: July 2018
Member
Thanks, Dennis you are a life-saver!
Previous Topic:Problem with refining mode in ATL (2)
Next Topic:How to Conditional Transformation in Rules ?
Goto Forum:
  


Current Time: Thu Apr 25 07:22:35 GMT 2024

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

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

Back to the top