Used for serialization
()
| 502 | Used for serialization |
| 503 | */ |
| 504 | public void prune() |
| 505 | { |
| 506 | // Cut off from parent, we must have our own class manager. |
| 507 | // Can't do this in the run() command (needs to resolve stuff) |
| 508 | // Should we do it by default when we create a namespace will no |
| 509 | // parent of class manager? |
| 510 | |
| 511 | if ( this.classManager == null ) |
| 512 | // XXX if we keep the createClassManager in getClassManager then we can axe |
| 513 | // this? |
| 514 | setClassManager( |
| 515 | BshClassManager.createClassManager( null/*interp*/ ) ); |
| 516 | |
| 517 | setParent( null ); |
| 518 | } |
| 519 | |
| 520 | public void setParent( NameSpace parent ) |
| 521 | { |
nothing calls this directly
no test coverage detected