|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ashes.examples.createclass.Main
Example of using Soot to create a classfile from scratch.
The 'createclass' example creates a HelloWorld class file using Soot.
It proceeds as follows:
- Create a SootClass HelloWorld
extending java.lang.Object.
- Create a 'main' method and add it to the class.
- Create an empty JimpleBody and add it to the 'main' method.
- Add locals and statements to JimpleBody.
- Write the result out to a class file.
Constructor Summary | |
Main()
|
Method Summary | |
static void |
main(java.lang.String[] args)
|
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public Main()
Method Detail |
public static void main(java.lang.String[] args)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |