Package EasyExtend :: Module cst2source :: Class NodeHandler_Exact
[hide private]
[frames] | no frames]

Class NodeHandler_Exact



 object --+    
          |    
NodeHandler --+
              |
             NodeHandler_Exact

Nested Classes [hide private]

Inherited from NodeHandler: State

Instance Methods [hide private]
 
__init__(self, **kwd)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
 
handle(self, node, *args, **kwargs)
Writes a node's equivalent source code to the output object.
 
handle_special(self, node)
 
handle_NL(self, node)
 
handle_COMMENT(self, node)
 
handle_BACKSLASH(self, node)
 
handle_NEWLINE(self, node)
 
handle_INDENT(self, node)
 
handle_DEDENT(self, node)
 
handle_token_value(self, node)

Inherited from NodeHandler: handle_ENDMARKER, has_addinfo, write_and_align

Inherited from NodeHandler (private): _get_spaces, _indent

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, **kwd)
(Constructor)

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

handle(self, node, *args, **kwargs)

 
Writes a node's equivalent source code to the output object.
Raises:
  • TypeError - If the node's type is unknown.