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

Abdejalil SETH shait.abdeljalil at gmail.com
Tue Apr 16 17:14:56 EDT 2013


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 *
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.cs.mcgill.ca/pipermail/soot-list/attachments/20130416/c9205c2d/attachment.html 


More information about the Soot-list mailing list