[Soot-list] creating call graph for a library (no main class)

Yi Lin qinsoon at gmail.com
Tue Apr 16 20:36:38 EDT 2013


I posted the code long time ago in the mail list. Sorry I made this 
mistake.
'allClasses' is a Collection of class names (Strings), such as 
"org.abc.MyClass". You should include all your application classes in 
the collection.

Regards,
Yi

On 17/04/13 7:14 , Abdejalil SETH wrote:
> Hi everybody,
>
>
>   code snippet of creating call graph for a library (no main class)?
>
> The code has one problem in compilation , if you tell what is the type 
> of allClass
> I have found a part of this code in the mailing list
> CODE: http://pastebin.com/6LuiGyLy
> OUTPUT : allClasses cannot be resolved to a variable
> public static ArrayList<SootMethod> getAllMethods() {
> ArrayList<SootMethod> entrypoints = new ArrayList<SootMethod>();
> for (String klass : allClasses) {
> // Error here : allCLass  ?
> // klass such as org.abc.MyClass
> Scene.v().forceResolve(klass, SootClass.SIGNATURES);
> SootClass soot_class = Scene.v().getSootClass(klass);
> // adding all non-abstract method as entrypoint
> for (SootMethod m : soot_class.getMethods()) {
> if (!m.isAbstract()) {
> entrypoints.add(m);
> }
> }
> }
> return entrypoints;
> }
> *i found that the problem is in :       allClass *
>
>
>
> 	
>
>
>
> _______________________________________________
> 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/20130417/d54b0781/attachment.html 


More information about the Soot-list mailing list