code: public void clear() {
          this.variables.clear();
          this.methods.clear();
          this.importedClasses.clear();
          this.importedPackages.clear();
          this.importedCommands.clear();
          this.importedObjects.clear();
          if (this.parent == null)
              this.loadDefaultImports();
          this.classCache.clear();
          this.names.clear();
      }
docs: 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()