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

Class ConstructorGraphNode

source code


An interface that provides information on constructor arguments.

This is used by ConstructorWalker to provide the results of walking child nodes in the same fmt as those nodes were provided in the constructor. The main advantage is that the names of named arguments are associated with the appropriate results.

For this to work correctly there is assumed to be a close relationship between constructor arguments and children (there is a somewhat implicit link between Python object constructors and type constructors in, say, Haskell). Exactly how constructor argmuents and children match depends on the implementation, but ConstructorWalker assumes that child nodes (from __iter__()) are visited before the same nodes appear in constructor arguments during depth-first postorder traversal.

Instance Methods [hide private]
 
_constructor_args(self)
Regenerate the constructor arguments (returns (args, kargs)).
source code

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

Properties [hide private]

Inherited from object: __class__