c.isPhantom = true; addClassSilent(c); c.setPhantomClass(); return c;
if (onlySignatures) { bringToSignatures(sc); sc.setPhantomClass(); for (SootMethod m : sc.getMethods()) { m.setPhantom(true);
} else { logger.warn("" + className + " is a phantom class!"); bclass.setPhantomClass(); return;
/** Marks this class as phantom, without notifying the Scene. */ public void setPhantom(boolean value) { if (value == false) if (isPhantom) throw new RuntimeException("don't know how to de-phantomize this class"); else return; setPhantomClass(); } /**
/** Marks this class as phantom, without notifying the Scene. */ public void setPhantom(boolean value) { if (value == false) if (isPhantom) throw new RuntimeException("don't know how to de-phantomize this class"); else return; setPhantomClass(); } /**
G.v().out.println( "Warning: " + className + " is a phantom class!"); sc.setPhantomClass(); classToTypesSignature.put( sc, new ArrayList() ); classToTypesHierarchy.put( sc, new ArrayList() );
G.v().out.println( "Warning: " + className + " is a phantom class!"); sc.setPhantomClass(); classToTypesSignature.put( sc, new ArrayList() ); classToTypesHierarchy.put( sc, new ArrayList() );
/** * Loads the class with the given name into the scene. This makes sure that * there is at least a phantom class with the given name * * @param className The name of the class to load */ private void loadClass(String className) { SootClass sc = Scene.v().getSootClassUnsafe(className); if (sc == null) { sc = Scene.v().makeSootClass(className); sc.setPhantomClass(); Scene.v().addClass(sc); } else if (sc.resolvingLevel() < SootClass.HIERARCHY) Scene.v().forceResolve(className, SootClass.HIERARCHY); }
if( onlySignatures ) { bringToSignatures(sc); sc.setPhantomClass(); if(sc.isPhantom()) { for( SootMethod m: sc.getMethods() ) {
if( onlySignatures ) { bringToSignatures(sc); sc.setPhantomClass(); if(sc.isPhantom()) { for( SootMethod m: sc.getMethods() ) {
if (sc.resolvingLevel() == SootClass.DANGLING) { sc.setResolvingLevel(SootClass.BODIES); sc.setPhantomClass();