Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » [ATL] get header from .asm or .atl in Java
[ATL] get header from .asm or .atl in Java [message #104680] Wed, 06 May 2009 14:42 Go to next message
Esteban Dugueperoux is currently offline Esteban DugueperouxFriend
Messages: 472
Registered: July 2009
Senior Member
Hi,

I look for a method from a .asm or .atl to get all infos from header (IN, OUT, metamodel).
I can read a .asm with ASMXMLReader class but I can get only ASMOperation and ASMField.


Thanks.
Re: [ATL] get header from .asm or .atl in Java [message #104742 is a reply to message #104680] Thu, 07 May 2009 09:02 Go to previous messageGo to next message
Esteban Dugueperoux is currently offline Esteban DugueperouxFriend
Messages: 472
Registered: July 2009
Senior Member
Esteban DUGUEPEROUX a écrit :
> Hi,
>
> I look for a method from a .asm or .atl to get all infos from header
> (IN, OUT, metamodel).
> I can read a .asm with ASMXMLReader class but I can get only
> ASMOperation and ASMField.
>
>
> Thanks.

I found how to get header infos with ATL 2.0/3.0 by looking for in ATL launchConfiguration. It uses AtlParser in ATL 2.0 and AtlSourceManager in ATL 3.0.
But concerning .asm file I don't found solution, I could use ASMXMLReader but which tag value use?

Thanks.
Re: [ATL] get header from .asm or .atl in Java [message #104778 is a reply to message #104742] Thu, 07 May 2009 12:38 Go to previous message
William Piers is currently offline William PiersFriend
Messages: 301
Registered: July 2009
Senior Member
Hello,

When a .atl file is compiled into a .asm one, it is converted into a
suite of operations.
An .asm file is usually compiled from ATL, but conceptually it could be
compiled from any other language: that's why you will only find the
module name and some operations into it.

So you won't be able to retrieve the complete header from a .asm, the
only inforrmation you can get by anaysis would be the metamodels names.

Best regards,

William

Esteban DUGUEPEROUX a écrit :
> Esteban DUGUEPEROUX a écrit :
>> Hi,
>>
>> I look for a method from a .asm or .atl to get all infos from header
>> (IN, OUT, metamodel).
>> I can read a .asm with ASMXMLReader class but I can get only
>> ASMOperation and ASMField.
>>
>>
>> Thanks.
>
> I found how to get header infos with ATL 2.0/3.0 by looking for in ATL
> launchConfiguration. It uses AtlParser in ATL 2.0 and AtlSourceManager
> in ATL 3.0.
> But concerning .asm file I don't found solution, I could use
> ASMXMLReader but which tag value use?
>
> Thanks.
Previous Topic:[ATL] What's new in the 3.0.0M7 (2009/05/05) ATL version API?
Next Topic:merging models
Goto Forum:
  


Current Time: Fri Apr 19 16:27:29 GMT 2024

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

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

Back to the top