Question about injecting and generating new classes #1057
anonymousgroundhog
started this conversation in
General
Replies: 1 comment 7 replies
-
Hello, in regards to creating a and inserting a new SootClass into the View please have a look at the To print the Jimple of a SootClass into a file you can use the JimplePrinter jimplePrinter = new JimplePrinter();
FileWriter fileWriter = new FileWriter("example.jimple");
PrintWriter printWriter = new PrintWriter(fileWriter);
jimplePrinter.printTo(sootClassToPrint, printWriter);
printWriter.close(); |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I want to know if it is possible to inject a new class.
For example, if I were to use the following code:
I want to insert an empty class.
Also, can sootup output the jimple to a folder similar to the old version of soot?
Any help would be much appreciated.
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions