Package logilab-common-0 :: Package 39 :: Package 0 :: Module tree :: Class BinaryNode
[frames] | no frames]

Class BinaryNode

source code

                         object --+        
                                  |        
                               Node --+    
                                      |    
logilab.common.visitor.VisitedMixIn --+    
                                      |    
                                  VNode --+
                                          |
                                         BinaryNode

a binary node (ie only two children
    

Instance Methods
 
__init__(self, lhs=None, rhs=None)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
remove(self, child)
remove the child and replace this node with the other child...
source code
 
get_parts(self)
return the left hand side and the right hand side of this node
source code

Inherited from Node: __iter__, __str__, append, depth, depth_down, flatten, get_child_by_id, get_child_by_path, get_node_by_id, get_sibling, insert, is_leaf, leaves, lineage, next_sibling, previous_sibling, replace, root, width

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

Properties

Inherited from object: __class__

Method Details

__init__(self, lhs=None, rhs=None)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

remove(self, child)

source code 
remove the child and replace this node with the other child
        

Overrides: Node.remove