Inherits from
- Namespace: enthought.endo.namespace.Namespace
Attributes
- GLOBAL
GLOBAL = { }
Method summary
- __init__(self, name, abs_name, file, lineno, parent_module = None, docstring = '', children = [ ])
- __repr__(self)
- bind(self, name, obj)
- divide_children(self)
- fromAST(*args)
- get_descendants(self, node_type = None)
- index(self)
- is_concrete(self)
- is_pkg_index(self)
- resolve_global(self, name)
- toString(self, indent = 0, step = 4)
Inherited from base classes
- copy(self, other_namespace)
- get_objects(self)
- resolve(self, identifier)
Methods
- __init__(self, name, abs_name, file, lineno, parent_module = None, docstring = '', children = [ ])
Constructor
Don't call this directly -- instead, use the fromAST static methods
- name : object name
- abs_name : dotted object name
- file : file where defined
- lineno : line number of definition
- parent_module : module object where defined
- docstring: documentation
- children : list of children
- __repr__(self)
- bind(self, name, obj)
Bind name to obj in this object's (self's) namespace
- divide_children(self)
Split children of documentable object
Returns tuple: (attr_children, class_children, func_children, trait_children)
- fromAST(*args)
abstract -- don't call this
- get_descendants(self, node_type = None)
get all descendants of this node (generator)
- node_type (optional) : if specified, only children that are instances of node_type will be returned
- index(self)
Return dictionary of modules, indexed by name
- is_concrete(self)
return True if object is in code that has been scanned, False if it is an external ref
- is_pkg_index(self)
return True if object is a package index (i.e. __init__.py)
- resolve_global(self, name)
- toString(self, indent = 0, step = 4)