[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Custom SourceLocator's possible?



Hi,

I'm using Soot in "library mode" instead of "application mode",
i.e., invoking it from other Java classes rather than on the
command line.

It doesn't seem currently possible in Soot to specify a custom
implementation of SourceLocator.. this is the class that actually
locates the classfiles in the filesystem that Soot reads and processes
(by searching the soot-class-path, etc).

First, just want to verify that this is indeed the case and I'm
not missing something..

Second, my hack is to use a native method to set the otherwise private
field "instanceSourceLocator" of the G.v() object to point to an instance
of my custom class that subclasses soot.util.SourceLocator.. will this
work as expected?

Thanks,
-Archie

__________________________________________________________________________
Archie Cobbs     *    Halloo Communications    *     http://www.halloo.com