public ClassBrowser() { this( BshClassManager.createClassManager( null/*interpreter*/ ) ); }
public BshClassManager getClassManager() { if ( classManager != null ) return classManager; if ( parent != null && parent != JAVACODE ) return parent.getClassManager(); classManager = BshClassManager.createClassManager( null/*interp*/ ); //Interpreter.debug("No class manager namespace:" +this); return classManager; }
/** Gets the class manager. * @return the class manager */ public BshClassManager getClassManager() { if (this.classManager != null) return this.classManager; if (this.parent != null && this.parent != JAVACODE) return this.parent.getClassManager(); this.setClassManager(BshClassManager .createClassManager(null/* interp */)); // Interpreter.debug("No class manager namespace:" +this); return this.classManager; }
/** Used for serialization */ public void prune() { // Cut off from parent, we must have our own class manager. // Can't do this in the run() command (needs to resolve stuff) // Should we do it by default when we create a namespace will no // parent of class manager? if ( this.classManager == null ) // XXX if we keep the createClassManager in getClassManager then we can axe // this? setClassManager( BshClassManager.createClassManager( null/*interp*/ ) ); setParent( null ); }
BshClassManager bcm = BshClassManager.createClassManager( this ); namespace = new NameSpace(namespace, bcm, "global");
master = (BshClassManager) masterClassManagers.get(classLoader); if (master == null) { master = BshClassManager.createClassManager(); master.setClassLoader(classLoader); masterClassManagers.put(classLoader, master);
this.sourceFileInfo = sourceFileInfo; BshClassManager bcm = BshClassManager.createClassManager( this ); if ( namespace == null ) { globalNameSpace = new NameSpace( bcm, "global");