class documentation

class TreeRoot: (source)

Known subclasses: pydocspec.TreeRoot

View In Hierarchy

Undocumented

Method __init__ Undocumented
Method __repr__ Undocumented
Method __str__ Undocumented
Method add_object Add a newly created object to the tree. Responsible to add the object to the parent namespace, setup parent attribute, setup the new object to the root instance and respectively.
Class Variable factory The factory used to create this collection of objects.
Instance Variable all_objects All objects of the tree in a mapping full_name -> ApiObject.
Instance Variable root_modules The root modules of the tree.
def __init__(self): (source)

Undocumented

def __repr__(self): (source)

Undocumented

Returns
strUndocumented
def __str__(self): (source)

Undocumented

Returns
strUndocumented
def add_object(self, ob, parent): (source)

Add a newly created object to the tree. Responsible to add the object to the parent namespace, setup parent attribute, setup the new object to the root instance and respectively.

If parent is None, the object passed will be treated as a root module.

Parameters
ob:ApiObjectUndocumented
parent:Optional[ApiObject]Undocumented

The factory used to create this collection of objects.

overridden in pydocspec.TreeRoot

All objects of the tree in a mapping full_name -> ApiObject.

Note
Special care is taken in order no to shadow objects with duplicate names, see DuplicateSafeDict.
overridden in pydocspec.TreeRoot

The root modules of the tree.