Package analysis :: Module namespace :: Class NamespaceRegister
[show private | hide private]
[frames | no frames]

Class NamespaceRegister


A name register for a given namespace.
Method Summary
  __init__(self, locals, globals, builtins, name_qualifier, name_context, module_name)
Initialise the register with the given 'locals', 'globals' and 'builtins' namespaces.
  add_blocked_node(self, node)
  get_qualified_name(self, name)
  load(self, node)
Find the name associated with the given 'node' in a namespace.
  make_global(self, node)
Remove the name associated with the given 'node' in the local namespace.
  return_node(self, node)
  store(self, node)
Store the name associated with the given 'node' in the local namespace.

Method Details

__init__(self, locals, globals, builtins, name_qualifier=None, name_context=None, module_name=None)
(Constructor)

Initialise the register with the given 'locals', 'globals' and 'builtins' namespaces. The optional 'name_qualifier' is used to qualify certain names. The optional 'name_context' is used to indicate the kind of local scope encapsulated by this namespace. The optional 'module_name' is used to remember which module a name is defined within.

load(self, node)

Find the name associated with the given 'node' in a namespace.

make_global(self, node)

Remove the name associated with the given 'node' in the local namespace. This is used when establishing global usage.

store(self, node)

Store the name associated with the given 'node' in the local namespace.

Generated by Epydoc 2.1 on Tue Dec 20 00:05:45 2005 http://epydoc.sf.net