if (!Scene.v().containsClass(className)) { Scene.v().addBasicClass(className, SootClass.BODIES); Scene.v().loadBasicClasses(); if (!Scene.v().containsClass(className)) { throw new RuntimeException("Trace file refers to unknown class: " + className);
/** * Load the set of classes that soot needs, including those specified on the command-line. This is the standard way of * initialising the list of classes soot should use. */ public void loadNecessaryClasses() { loadBasicClasses(); for (String name : Options.v().classes()) { loadNecessaryClass(name); } loadDynamicClasses(); if (Options.v().oaat()) { if (Options.v().process_dir().isEmpty()) { throw new IllegalArgumentException("If switch -oaat is used, then also -process-dir must be given."); } } else { for (final String path : Options.v().process_dir()) { for (String cl : SourceLocator.v().getClassesUnder(path)) { SootClass theClass = loadClassAndSupport(cl); if (!theClass.isPhantom) { theClass.setApplicationClass(); } } } } prepareClasses(); setDoneResolving(); }
/** Load the set of classes that soot needs, including those specified on the * command-line. This is the standard way of initialising the list of * classes soot should use. */ public void loadNecessaryClasses() { loadBasicClasses(); Iterator<String> it = Options.v().classes().iterator(); while (it.hasNext()) { String name = (String) it.next(); loadNecessaryClass(name); } loadDynamicClasses(); for( Iterator<String> pathIt = Options.v().process_dir().iterator(); pathIt.hasNext(); ) { final String path = (String) pathIt.next(); for (String cl : SourceLocator.v().getClassesUnder(path)) { loadClassAndSupport(cl).setApplicationClass(); } } prepareClasses(); // RoboVM note: In RoboVM we're never done resolving //setDoneResolving(); }
/** Load the set of classes that soot needs, including those specified on the * command-line. This is the standard way of initialising the list of * classes soot should use. */ public void loadNecessaryClasses() { loadBasicClasses(); Iterator<String> it = Options.v().classes().iterator(); while (it.hasNext()) { String name = (String) it.next(); loadNecessaryClass(name); } loadDynamicClasses(); for( Iterator<String> pathIt = Options.v().process_dir().iterator(); pathIt.hasNext(); ) { final String path = (String) pathIt.next(); for (String cl : SourceLocator.v().getClassesUnder(path)) { loadClassAndSupport(cl).setApplicationClass(); } } prepareClasses(); // RoboVM note: In RoboVM we're never done resolving //setDoneResolving(); }
if(!Scene.v().containsClass(className)) { Scene.v().addBasicClass(className, SootClass.BODIES); Scene.v().loadBasicClasses(); if(!Scene.v().containsClass(className)) { throw new RuntimeException("Trace file refers to unknown class: "+className);
if(!Scene.v().containsClass(className)) { Scene.v().addBasicClass(className, SootClass.BODIES); Scene.v().loadBasicClasses(); if(!Scene.v().containsClass(className)) { throw new RuntimeException("Trace file refers to unknown class: "+className);
Scene.v().loadBasicClasses();