[Soot-list] resolving overloading

Patrick LAM plam at cs.mcgill.ca
Wed Jul 11 14:47:00 EDT 2007


Greg Dennis 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?

Hi Greg,

You might want to look into soot.FastHierarchy and in particular 
resolveConcreteDispatch. It is not exactly what you want, since you have 
  to pass it a SootMethod already, but you don't have to know exactly 
which SootMethod you'll be wanting. Good luck!

pat


More information about the Soot-list mailing list