[Soot-list] Resetting Soot and Line number question
jlhotak at cs.mcgill.ca
Fri Oct 21 09:55:16 EDT 2005
Since version 2.0, Soot can be reset using soot.G.v().reset(). This has
not changed or been removed.
On Fri, 21 Oct 2005, Barthelemy Dagenais wrote:
> 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,
> 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.
> Soot-list mailing list
> Soot-list at sable.mcgill.ca
More information about the Soot-list