/** Get the top level namespace or this namespace if we are the top. Note: * this method should probably return type bsh.This to be consistent with * getThis(); * @param declaringInterpreter the declaring interpreter * @return the global */ public This getGlobal(final Interpreter declaringInterpreter) { if (this.parent != null) return this.parent.getGlobal(declaringInterpreter); else return this.getThis(declaringInterpreter); }
/** Get the top level namespace or this namespace if we are the top. Note: this method should probably return type bsh.This to be consistent with getThis(); */ public This getGlobal( Interpreter declaringInterpreter ) { if ( parent != null ) return parent.getGlobal( declaringInterpreter ); else return getThis( declaringInterpreter ); }
obj = thisNameSpace.getGlobal( interpreter );
obj = thisNameSpace.getGlobal( visitor.getInterpreter() );