Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » MoDisco » Extracting the parameters from (Calls)(extracing paramerets using Modisco )
Extracting the parameters from (Calls) [message #1810585] Tue, 13 August 2019 17:40 Go to next message
Amine Haddaji is currently offline Amine HaddajiFriend
Messages: 5
Registered: April 2019
Junior Member
Hello, Eclipse community,

I have a problem getting something from the KDM, from calls to be exact.
I'm building a call graph. so i need the methods called (by whom and parameters passed if they exist ).
Let's say method A calls method B(X).
I can get the parameters (X) passed to method B but i also want to know the parameters used to invocate the method A before as well.
So, at the end, i will have with something like this ... -> Method A(Args_A) -> Method B (Args_B) -> ....

I need to extract those parameters to distinguish multiple methods with the same name but different parameters.

I'm not sure if MoDisco allows this or not. so any help is appreciated.
Thank you !

[Updated on: Tue, 13 August 2019 18:05]

Report message to a moderator

Re: Extracting the parameters from (Calls) [message #1810964 is a reply to message #1810585] Thu, 22 August 2019 17:13 Go to previous messageGo to next message
Daniel San Martín is currently offline Daniel San MartínFriend
Messages: 45
Registered: October 2012
Member
Hello Amine,

Have you read the KDM metamodel specification?.

12.7.7 ParameterUnit Class
ParameterUnit class is a concrete subclass of the DataElement class that represents a formal parameter; for example, a formal parameter of a procedure. ParameterUnits are owned by the Signature element. Instances of ParameterUnit class are endpoints of KDM data relations that describe ccess to formal parameters. (https://www.omg.org/spec/KDM/1.4/PDF)

Maybe thats help you,

Regards,

Daniel

[Updated on: Thu, 22 August 2019 17:14]

Report message to a moderator

Re: Extracting the parameters from (Calls) [message #1810969 is a reply to message #1810964] Thu, 22 August 2019 17:32 Go to previous message
Amine Haddaji is currently offline Amine HaddajiFriend
Messages: 5
Registered: April 2019
Junior Member
I have already found a solution. That's how i got it done.
So, for people asking(googling) the same question, that's how to do it !
Thanks Daniel
Previous Topic:Unable to get KDM Plugin installed
Next Topic:On the immediate future of the MoDisco project
Goto Forum:
  


Current Time: Fri Apr 26 02:54:01 GMT 2024

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

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

Back to the top