public SootClass loadClass(String className, int desiredLevel) { /* if(Options.v().time()) Main.v().resolveTimer.start(); */ setPhantomRefs(true); // SootResolver resolver = new SootResolver(); SootResolver resolver = SootResolver.v(); SootClass toReturn = resolver.resolveClass(className, desiredLevel); setPhantomRefs(false); return toReturn; /* if(Options.v().time()) Main.v().resolveTimer.end(); */ }
/** * Attempts to load the given class and all of the required support classes. Returns the original * class if it was loaded, or null otherwise. */ public SootClass tryLoadClass(String className, int desiredLevel) { /* if(Options.v().time()) Main.v().resolveTimer.start(); */ setPhantomRefs(true); // SootResolver resolver = new SootResolver(); if (!getPhantomRefs() && SourceLocator.v().getClassSource(className) == null) { setPhantomRefs(false); return null; } SootResolver resolver = SootResolver.v(); SootClass toReturn = resolver.resolveClass(className, desiredLevel); setPhantomRefs(false); return toReturn; /* if(Options.v().time()) Main.v().resolveTimer.end(); */ }