MCPcopy Create free account
hub / github.com/beanshell/beanshell / prune

Method prune

src/bsh/NameSpace.java:504–518  ·  view source on GitHub ↗

Used for serialization

()

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls 3

setClassManagerMethod · 0.95
createClassManagerMethod · 0.95
setParentMethod · 0.95

Tested by

no test coverage detected