Package Martel :: Module Expression :: Class HeaderFooter
[hide private]
[frames] | no frames]

Class HeaderFooter

source code

Expression --+    
             |    
   PassThrough --+
                 |
                HeaderFooter

Instance Methods [hide private]
 
__init__(self, format_name, attrs, header_expression, make_header_reader, header_args, record_expression, make_record_reader, record_args, footer_expression, make_footer_reader, footer_args)
(expression)
source code
 
copy(self)
do a deep copy on this Expression tree
source code
 
_modify_leaves(self, func)
internal function for manipulating the leaves of an expression
source code
 
make_parser(self, debug_level=0)
create a SAX compliant parser for this regexp
source code
 
make_iterator(self, tag, debug_level=0)
create an iterator for this regexp; the 'tag' defines a record
source code
 
group_names(self)
the list of group names used by this Expression and its children
source code
 
_find_groups(self, tag)
return a list of all groups matching the given tag
source code
 
features(self)
return a list of all features
source code

Inherited from PassThrough: __str__

Inherited from PassThrough (private): _select_names

Inherited from Expression: __add__, __or__

Method Details [hide private]

__init__(self, format_name, attrs, header_expression, make_header_reader, header_args, record_expression, make_record_reader, record_args, footer_expression, make_footer_reader, footer_args)
(Constructor)

source code 

(expression)

Match the given subexpression. This class should not be used directly. It is meant for generating specialized parsers which read a record at a time.

Overrides: PassThrough.__init__
(inherited documentation)

copy(self)

source code 

do a deep copy on this Expression tree

Overrides: Expression.copy
(inherited documentation)

_modify_leaves(self, func)

source code 

internal function for manipulating the leaves of an expression

This really needs to be some sort of visit pattern, but I'm not sure the best way to do it. THIS METHOD MAY CHANGE.

Overrides: Expression._modify_leaves
(inherited documentation)

make_parser(self, debug_level=0)

source code 

create a SAX compliant parser for this regexp

Overrides: Expression.make_parser
(inherited documentation)

make_iterator(self, tag, debug_level=0)

source code 

create an iterator for this regexp; the 'tag' defines a record

Overrides: Expression.make_iterator

group_names(self)

source code 

the list of group names used by this Expression and its children

Overrides: Expression.group_names
(inherited documentation)

_find_groups(self, tag)

source code 

return a list of all groups matching the given tag

Overrides: Expression._find_groups
(inherited documentation)

features(self)

source code 

return a list of all features

Overrides: Expression.features