[Soot-list] Resetting Soot and Line number question

Barthelemy Dagenais barthed at hotmail.com
Fri Oct 21 08:48:29 EDT 2005


Eric Bodden <eric at bodden.de> wrote:

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

---------------------------------------------

Thanks Eric for your answer. I am a little confused here. How can I access 
this specific instance of the Global class and how can I reset it? I did not 
see any methods in the Scene class or in the Global class to get this 
instance or to reset it.

Regards,
Barthélémy




More information about the Soot-list mailing list