[Soot-list] Resetting Soot and Line number question
Eric Bodden
eric at bodden.de
Thu Oct 20 13:39:36 EDT 2005
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Barthelemy Dagenais wrote:
> I searched through the mailing list archives and I could not find
> answers for these questions.
>
> I would like to use Soot more than once in my application. I read it
> is possible to reset Soot Scene since Soot 2.0, but I cannot find how
> to do it in the API. It seems every time I use the
> loadNecessaryClasses() method of the Scene class, the changes made to
> the class files are not taken into account.
The Scene is constructed with a state object of type soot.Singletons.Global.
IIRC you can reset this Global instance and then when you call Scene.v() you
will get a clean Scene instance. (Earlier versions used to have
Scene.v().reset() - I don't know why it was removed...
Hope that helps,
Eric
- --
Eric Bodden
Chair I2 for Programming Languages and Program Analysis
RWTH Aachen University
-----BEGIN PGP SIGNATURE-----
Version: PGP Desktop 9.0.2 (Build 2424)
iQA/AwUBQ1fWXMwiFCm7RlWCEQJkqACfVyFjb8QpqDe74vk7h6hjkdxyXrwAoN3c
vq9tZSQpWqFeFjpVb4jLqb8b
=UsmQ
-----END PGP SIGNATURE-----
More information about the Soot-list
mailing list