I would like to know the possibility of achieving the below use case in RSA.
Let us assume there are multiple projects (Java/J2EE) in a RSA workspace P1, P2, P3, etc. These projects are dependent on each other.
I would like to automatically fetch the caller-callee tree for all methods across these projects. Sample information collected can be something like below. And each call information should be indexed and available like a call trace for deeper analysis. The line of method call also should be navigable from the extracted data.
Project Class Caller Callee Callee Class Callee Project P1 Com.C1 M1 M2 Com.C2 P2 P2 Com.C2 M2 M3 Com.C3 P3 P1 Com.C1 M4 M5 Com.C1 P1 P2 Com.C2 M7 M8 Com.C4 P3
Answer by Meeranagaraj (73) | Apr 25, 2016 at 01:18 AM
There is no out-of-the-box support to extract the caller-callee tree information for the Java/J2EE models and/or corresponding UML models in RSA.
One possible approach to create caller-callee tree information: If UML model has Sequence diagram that captures the method invocations between the classes, then user can write their custom logic to go through these sequence diagrams and identify the caller-callee details. Please note the sequence diagrams are not automatically generated during the Java-to-UML transformation. User may need to create these diagrams manually.
The other approach is to evaluate whether this can be achieved with the static code analysis functionality of RSA. Please note this is a Analyzer component just shipped with RSA. Please refer to the link
http://www.ibm.com/developerworks/rational/library/08/0429_gutz1/