Skip to main content



      Home
Home » Modeling » MoDisco » Extracting the parameters from (Calls)(extracing paramerets using Modisco )
Extracting the parameters from (Calls) [message #1810585] Tue, 13 August 2019 13:40 Go to next message
Eclipse UserFriend
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 14:05] by Moderator

Re: Extracting the parameters from (Calls) [message #1810964 is a reply to message #1810585] Thu, 22 August 2019 13:13 Go to previous messageGo to next message
Eclipse UserFriend
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 13:14] by Moderator

Re: Extracting the parameters from (Calls) [message #1810969 is a reply to message #1810964] Thu, 22 August 2019 13:32 Go to previous message
Eclipse UserFriend
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: Wed May 14 02:16:23 EDT 2025

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

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

Back to the top