public class DexResolver
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.util.Map<java.io.File,DexlibWrapper> |
cache |
Constructor and Description |
---|
DexResolver(Singletons.Global g) |
Modifier and Type | Method and Description |
---|---|
protected static void |
addSourceFileTag(SootClass sc,
java.lang.String fileName)
adds source file tag to each sootclass
|
protected DexlibWrapper |
initializeDexFile(java.io.File file)
Initializes the dex wrapper for the given dex file
|
IInitialResolver.Dependencies |
resolveFromFile(java.io.File file,
java.lang.String className,
SootClass sc)
Resolve the class contained in file into the passed soot class.
|
static DexResolver |
v() |
protected java.util.Map<java.io.File,DexlibWrapper> cache
public static DexResolver v()
public IInitialResolver.Dependencies resolveFromFile(java.io.File file, java.lang.String className, SootClass sc)
file
- the path to the dex/apk file to resolveclassName
- the name of the class to resolvesc
- the soot class that will represent the classprotected DexlibWrapper initializeDexFile(java.io.File file)
file
- The dex file to loadprotected static void addSourceFileTag(SootClass sc, java.lang.String fileName)