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

Class ExpressionList

Expression --+
             |
            ExpressionList

Known Subclasses:
Alt, Seq

shares implementation used by 'Expressions with subexpressions'
Method Summary
  copy(self)
do a deep copy on this Expression tree
  features(self)
return a list of all features
  group_names(self)
the list of group names used by this Expression or its children
  _find_groups(self, tag)
return a list of all groups matching the given tag
  _modify_leaves(self, func)
internal function for manipulating the leaves of an expression
  _select_names(self, names)
internal function.
    Inherited from Expression
  __add__(self, other)
returns an Expression to match this Expression then the other one
  __or__(self, other)
returns an Expression matching this Expression or (if that fails) the other one
  __str__(self)
the corresponding pattern string
  make_iterator(self, tag, debug_level)
create an iterator for this regexp; the 'tag' defines a record
  make_parser(self, debug_level)
create a SAX compliant parser for this regexp

Method Details

copy(self)

do a deep copy on this Expression tree
Overrides:
Martel.Expression.Expression.copy

features(self)

return a list of all features
Overrides:
Martel.Expression.Expression.features

group_names(self)

the list of group names used by this Expression or its children
Overrides:
Martel.Expression.Expression.group_names

_find_groups(self, tag)

return a list of all groups matching the given tag
Overrides:
Martel.Expression.Expression._find_groups (inherited documentation)

_modify_leaves(self, func)

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:
Martel.Expression.Expression._modify_leaves (inherited documentation)

_select_names(self, names)

internal function. Do not use.
Overrides:
Martel.Expression.Expression._select_names

Generated by Epydoc 2.1 on Wed Jan 31 09:58:02 2007 http://epydoc.sf.net