Synopsis - Synopsis.Formatters.ClassTree.ClassTree

module Synopsis.Formatters.ClassTree
class ClassTree
File: ../Synopsis/Formatters/ClassTree.py
Maintains a tree of classes directed by inheritance. This object always exists in HTML, since it is used for other things such as printing class bases.
Protected Methods Summary:
_make_graphs(self)
Attributes Summary:
__superclasses
__subclasses
__classes
__buckets
Methods Summary:
__init__(self)
add_inheritance(self, supername, subname)
Adds an edge to the graph.
subclasses(self, classname)
superclasses(self, classname)
Returns a sorted list of all classes the given class derives from.
classes(self)
add_class(self, name)
roots(self)
graphs(self)
Returns a list of graphs.
leaves(self, graph)
Returns a list of leaves in the given graph.
visit_scope(self, scope)
visit_class(self, class_)
Methods Details:
add_inheritance(self, supername, subname)
Adds an edge to the graph. Supername and subname are the scoped names of the two classes involved in the edge, and are copied before being stored.
subclasses(self, classname)
Returns a sorted list of all classes derived from the given class
superclasses(self, classname)
Returns a sorted list of all classes the given class derives from. The classes are returned as scoped names, which you may use to lookup the class declarations in the 'types' dictionary if you need to.
classes(self)
Returns a sorted list of all class names
add_class(self, name)
Adds a class to the list of classes by name
roots(self)
Returns a list of classes that have no superclasses
graphs(self)
Returns a list of graphs. Each graph is just a list of connected classes.
leaves(self, graph)
Returns a list of leaves in the given graph. A leaf is a class with no subclasses
visit_class(self, class_)
Adds this class and all edges to the lists
Generated on Thu Apr 16 16:26:57 2009 by
synopsis (version devel)