Package gavo :: Package grammars :: Module directgrammar :: Class ColCodeGenerator
[frames] | no frames]

Class ColCodeGenerator

source code

         object --+        
                  |        
     _CodeGenerator --+    
                      |    
_LineBasedCodeGenerator --+
                          |
                         ColCodeGenerator

Instance Methods
 
getItemParser(self, item, index)
returns code that parses item (a Column instance) at column index index.
source code
 
getPrototype(self)
returns the prototype of the getTuple function.
source code

Inherited from _LineBasedCodeGenerator: getFooter

Inherited from _CodeGenerator: __init__, getPreamble, getSetupCode

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

Properties

Inherited from object: __class__

Method Details

getItemParser(self, item, index)

source code 

returns code that parses item (a Column instance) at column index index.

You're free to igore index.

Overrides: _CodeGenerator.getItemParser
(inherited documentation)

getPrototype(self)

source code 

returns the prototype of the getTuple function.

Overrides: _CodeGenerator.getPrototype