[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Soot and class loaders
Question for the Soot design team:
The way to ask Soot to "load" a class (as far as I can tell) is to
do something like this:
SootClass c = Scene.v().loadClassAndSupport("java.lang.String");
Soot then finds the corresponding class file and uses it to construct
the corresponding SootClass.
It seems one should be able to supply a custom SourceLocator however.
For example, suppose you are using Soot as part of some application
that analyses applets; you may want to read the class files straight
out of the JAR file instead of unpacking them all into the filesystem
first, etc.
At first I thought about supplying a ClassLoader argument, but that
doesn't seem to work because we don't actually want to load (in the
Java VM sense) the classes, we just need the class file bytes.
Comments?
Thanks,
-Archie
__________________________________________________________________________
Archie Cobbs * Packet Design * http://www.packetdesign.com