[Soot-list] implementing scene tranform
suraj kath
surajkath108 at gmail.com
Tue Mar 1 16:30:45 EST 2011
could u please tell me what is wrong with following code
i am just truying to use wjtp phase
and scene transform
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.cs.mcgill.ca/pipermail/soot-list/attachments/20110301/2c074579/attachment.html
-------------- next part --------------
public class Main {
public static void main(String[] args) {
Scene.v().setSootClassPath("E:\\classfiles;C:\\Program Files\\Java\\jre6\\lib\\rt.jar;C:\\Program Files\\Java\\jre6\\lib\\jce.jar");
/* add a phase to transformer pack by call Pack.add */
PackManager.v().getPack("wjtp").apply();
PhaseOptions.v().setPhaseOption("wjtp.tn", "enabled:true");
PhaseOptions.v().setPhaseOption("wjtp.tn", "do-mhp:true");
Pack jtp = PackManager.v().getPack("wjtp");
jtp.add(new Transform("wjtp.myTransform",
new invoke()));
soot.Main.main(args);
}
}
public class invoke extends SceneTransformer{
protected void internalTransform(String phaseName, Map options)
{
for(SootClass scl:Scene.v().getApplicationClasses())
{
System.out.println("the class is"+scl.getName());
}
}// it is not running the internal transform of invoke
}
More information about the Soot-list
mailing list