Package logilab :: Package common :: Package ureports :: Module nodes :: Class Text
[frames] | no frames]

Class Text

source code

          object --+            
                   |            
           tree.Node --+        
                       |        
          object --+   |        
                   |   |        
visitor.VisitedMixIn --+        
                       |        
              tree.VNode --+    
                           |    
               BaseComponent --+
                               |
                              Text

a text portion

attributes : * BaseComponent attributes * data : the text value as an encoded or unicode string

Instance Methods
 
__init__(self, data, escaped=True, **kwargs)
x.__init__(...) initializes x; see help(type(x)) for signature
source code

Inherited from tree.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, remove, replace, root, width

Inherited from visitor.VisitedMixIn: accept, get_visit_name, leave

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

Properties

Inherited from object: __class__

Method Details

__init__(self, data, escaped=True, **kwargs)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)