[Soot-list] Creating a call graph that connects classes

Khilan Gudka khilan at doc.ic.ac.uk
Mon Nov 23 14:59:18 EST 2009


Hi Gady,

As far as I know, this information can only be obtained manually. For
example, the source and target classes for a call graph edge e can be
obtained as follows:

SootClass srcClass = e.src().getDeclaringClass();

SootClass tgtClass = e.tgt().getDeclaringClass();

Hope that helps,
Khilan

2009/11/20 Male, Gady <gady.male at hp.com>

>   Hi All,
>
> I am new to Soot and I am trying to create a call graph for a number of
> given classes.
>
> My purpose is to understand the connections between them.
>
> Currently I see that Soot creates a very huge call graph that connects
> between methods and units (and even contain other classes besides the given
> ones)
>
> I am only interested to know what are the dependences of the given classes
> among themselves.
>
>
>
> For example:
>
> If I have classes A, B and C.
>
> I only want to know that A is connected to B
>
> And B is connected to C
>
>
>
> I Don’t need the connection between the units and the methods
>
>
>
> So Is there a way to get that kind of minimized call graph?
>
>
>
> Thanks,
>
> Gady
>
>
>
> _______________________________________________
> Soot-list mailing list
> Soot-list at sable.mcgill.ca
> http://mailman.cs.mcgill.ca/mailman/listinfo/soot-list
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.cs.mcgill.ca/pipermail/soot-list/attachments/20091123/a4e46616/attachment.html 


More information about the Soot-list mailing list