Bind a This reference to a parent's namespace with the specified declaring interpreter. Also re-init the callstack. It's necessary to bind a This reference before it can be used after deserialization. This is used by the bsh load() command. This is a static utility method because i
( This ths, NameSpace namespace, Interpreter declaringInterpreter )
| 413 | methods of This objects (small hack) |
| 414 | */ |
| 415 | public static void bind( |
| 416 | This ths, NameSpace namespace, Interpreter declaringInterpreter ) |
| 417 | { |
| 418 | ths.namespace.setParent( namespace ); |
| 419 | ths.declaringInterpreter = declaringInterpreter; |
| 420 | } |
| 421 | |
| 422 | /** |
| 423 | Allow invocations of these method names on This type objects. |