use of soot.Transform in project soot by Sable.
the class MyMain method main.
public static void main(String[] args) {
PackManager.v().getPack("jtp").add(new Transform("jtp.myTransform", new BodyTransformer() {
protected void internalTransform(Body body, String phase, Map options) {
new MyAnalysis(new ExceptionalUnitGraph(body));
// use G.v().out instead of System.out so that Soot can
// redirect this output to the Eclipse console
G.v().out.println(body.getMethod());
}
}));
soot.Main.main(args);
}
use of soot.Transform in project soot by Sable.
the class LineNumberGenerator method main.
public static void main(String[] argv) {
// if you do not want soot to output new class files, run with comman line option "-f n"
// if you want the source code line numbers for jimple statements, use this:
PackManager.v().getPack("jtp").add(new Transform("jtp.lnprinter", new LineNumberGenerator().bln));
// if you want the source code line numbers for baf instructions, use this:
PackManager.v().getPack("bb").add(new Transform("bb.lnprinter", new LineNumberGenerator().bln));
soot.Main.main(argv);
}
use of soot.Transform in project soot by Sable.
the class DumpNumAppReachableMethods method main.
/**
* @param args
*/
public static void main(String[] args) {
PackManager.v().getPack("wjtp").add(new Transform("wjtp.narm", new DumpNumAppReachableMethods()));
soot.Main.main(args);
}
Aggregations