[Soot-list] resolving overloading

Richard L. Halpert richardlhalpert at gmail.com
Wed Jul 11 14:48:42 EDT 2007


generate a string containing the subsignature (ie "void setValue(int)" or
the like), then use the below (copied from Scene.java):

if( !sootclass.declaresMethod( methodsubsignature ) ) /*method doesn't
exist*/;
SootMethod sm = sootclass.getMethod( methodsubsignature );

-Rich

On 7/11/07, Greg Dennis <gdennis at mit.edu> wrote:
>
> Anyone have a handy snippet of code to resolve method overloading (not
> overriding). That is, given 1) a Soot class, 2) the name of a method
> declared by that class (it may declare multiple methods of that name),
> and 3) a list of argument types (not parameter types), it finds the
> Soot method to which such a call would resolve. Can anyone point me to
> some code to do this?
>
> Thanks,
> Greg
> _______________________________________________
> 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/20070711/83908526/attachment.htm


More information about the Soot-list mailing list