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

Method clear

src/bsh/NameSpace.java:1432–1444  ·  view source on GitHub ↗

Clear all variables, methods, and imports from this namespace. If this namespace is the root, it will be reset to the default imports. @see #loadDefaultImports()

()

Source from the content-addressed store, hash-verified

1430 @see #loadDefaultImports()
1431 */
1432 public void clear()
1433 {
1434 variables = null;
1435 methods = null;
1436 importedClasses = null;
1437 importedPackages = null;
1438 importedCommands = null;
1439 importedObjects = null;
1440 if ( parent == null )
1441 loadDefaultImports();
1442 classCache = null;
1443 names = null;
1444 }
1445
1446 /**
1447 Import a compiled Java object's methods and variables into this

Callers

nothing calls this directly

Calls 1

loadDefaultImportsMethod · 0.95

Tested by

no test coverage detected