[Soot-list] How could I get detail in method?

贾翕 g.jessejia at gmail.com
Wed Mar 13 04:53:47 EDT 2013


Hey,
     I want to know some details (such as which methods are invoked, which
variables are used and defined) in
method, How could I do?
    After check API, I thought  the Class Body may help me, but in my code,
method don't have a active body.
So, I don't know how to do with it and need a help.
   Below is my source code, hope it can help you understand my situation:

    public static void main(String[] args){
ArrayList<String> argList = new ArrayList<String>();
argList.add("-no-bodies-for-excluded");
argList.add("-pp");
argList.add("DivisorDigits");
 Pack wjtp = PackManager.v().getPack("wjtp");
wjtp.add(new Transform("wjtp.testrdpoint", new TestRdProgramPoint()));
 soot.Main.main(argList.toArray(new String[0]));
 List<SootMethod> methods =
soot.Scene.v().getApplicationClasses().getFirst().getMethods();
Iterator<SootMethod> it =  methods.iterator();
while(it.hasNext()){
//I want get some details about method at here, but I don't know the
solution.
}
}

 Thanks a lot.

Jesse
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.cs.mcgill.ca/pipermail/soot-list/attachments/20130313/ea27cd13/attachment.html 


More information about the Soot-list mailing list