[Soot-list] using DeclaresMethod in SootClass
Nomair A. Naeem
nomair.naeem at mail.mcgill.ca
Tue Jan 24 13:30:23 EST 2006
Hey Guys,
A question for the Soot gurus:
Suppose a SootClass declares a method
foo(List)
Now I need to be able to check whether it declares a Method
foo(ArrayList)
The declaresMethod method should return true in the case the
SootClass declares a method where the paramtypes are super types of the
types i am trying to match e.g. ArrayList is a subType of List.
How do i do this.
An attempt was as follows:
List argList = new ArrayList();
argList.add(RefType.v("java.util.ArrayList");
testSootClass.declaresMethod("foo",argList);
The declaresMethod returns false.
Any suggestions.
Nomair
More information about the Soot-list
mailing list