Package lepl :: Package support :: Module graph :: Class SimpleWalker
[hide private]
[frames] | no frames]

Class SimpleWalker

source code


This works like ConstructorWalker for generic classes. Since it has no knowledge of constructor arguments it assumes that all children are passed like '*args'.

This allows visitors written for ConstructorGraphNode trees to be used with arbitrary objects (as long as they follow the convention described above).

Instance Methods [hide private]
 
__init__(self, root, type_)
Create a walker for the graph starting at the given node.
source code
 
__call__(self, visitor)
Apply the visitor to the nodes in the graph, in postorder.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, root, type_)
(Constructor)

source code 
Create a walker for the graph starting at the given node.
Overrides: object.__init__