class documentation

class TreeCopyVisitor(GenericNodeVisitor): (source)

Known subclasses: docutils.transforms.parts.ContentsFilter

View In Hierarchy

Make a complete copy of a tree or branch, including element attributes.
Method __init__ Undocumented
Method default​_departure Restore the previous acting parent.
Method default​_visit Copy the current node, and make it the new acting parent.
Method get​_tree​_copy Undocumented
Instance Variable parent Undocumented
Instance Variable parent​_stack Undocumented

Inherited from NodeVisitor (via GenericNodeVisitor):

Method dispatch​_departure Call self."depart_ + node class name" with node as parameter. If the depart_... method does not exist, call self.unknown_departure.
Method dispatch​_visit Call self."visit_ + node class name" with node as parameter. If the visit_... method does not exist, call self.unknown_visit.
Method unknown​_departure Called before exiting unknown Node types.
Method unknown​_visit Called when entering unknown Node types.
Class Variable optional Tuple containing node class names (as strings).
Instance Variable document Undocumented
def __init__(self, document): (source)

Undocumented

def default_departure(self, node): (source)
Restore the previous acting parent.
def default_visit(self, node): (source)
Copy the current node, and make it the new acting parent.
def get_tree_copy(self): (source)

Undocumented

parent = (source)

Undocumented

parent_stack: list = (source)

Undocumented