Package lyntin :: Module argparser :: Class ReChecker
[show private | hide private]
[frames | no frames]

Class ReChecker

TypeChecker --+
              |
             ReChecker


Compiles the incoming argument as a regular expression.
Method Summary
  __init__(self, typename, typeargs)
Initializes the TypeChecker.
Re check(self, arg)
Converts the string into a regular expression.

Method Details

__init__(self, typename, typeargs)
(Constructor)

Initializes the TypeChecker. Over-ridden by all the TypeChecker subclasses.
Parameters:
typename - the name of the type
           (type=string)
typeargs - the arguments passed to the TypeChecker to initialize it
           (type=tuple)
Overrides:
lyntin.argparser.TypeChecker.__init__ (inherited documentation)

check(self, arg)

Converts the string into a regular expression. Raises whatever exceptions re.compile raises.
Parameters:
arg - the argument
           (type=string)
Returns:
the compiled regular expression
           (type=Re)
Overrides:
lyntin.argparser.TypeChecker.check

Generated by Epydoc 2.1 on Mon Aug 9 09:17:41 2004 http://epydoc.sf.net