| Trees | Index | Help |
|
|---|
| Module argparser :: Class Parser |
|
ExtraNamedParser,
ExtraIndexParser| Method Summary | |
|---|---|
Initializes the Parser. | |
| varies |
Parses the value according to this parser and its associated Typechecker. |
Populates the argument dictionary with the appropriate value. | |
Sets the default value for this Parser which is used when no other value is given. | |
Sets the typechecker. | |
| Method Details |
|---|
__init__(self,
argparser,
argname)
Initializes the Parser.
|
parse(self, val)Parses the value according to this parser and its associated Typechecker. We both typecheck it here (making sure it's valid) as well as convert it (i.e. strings -> ints, strings -> regexps...).
|
parseInto(self, key, val, dict)Populates the argument dictionary with the appropriate value.
|
setDefault(self, val)Sets the default value for this Parser which is used when no other value is given. Also sets the "defaultset" member which tells the Parser that it has a default value.
|
setTypeChecker(self, typechecker)Sets the typechecker. The Parser then uses this to check the values coming in before setting them on the name/value dict.
|
| Trees | Index | Help |
|
|---|
| Generated by Epydoc 1.1 on Mon Apr 28 21:11:24 2003 | http://epydoc.sf.net |