| java.lang.Object com.ziclix.python.sql.util.PyArgParser
PyArgParser | public class PyArgParser extends Object (Code) | | Parse the args and kws for a method call.
author: brian zimmer version: $Revision: 2414 $ |
Method Summary | |
public PyObject | arg(int index) Return the argument at the given index, raise an IndexError if out of range. | public PyObject | arg(int index, PyObject def) Return the argument at the given index, or the default if the index is out of range. | public boolean | hasKw(String kw) | public PyObject | kw(String kw) Return the value for the keyword, raise a KeyError if the keyword does
not exist. | public PyObject | kw(String kw, PyObject def) Return the value for the keyword, return the default if the keyword does
not exist. | public String[] | kws() Get the array of keywords. | public int | numArg() Get the number of arguments. | public int | numKw() | protected void | parse(PyObject[] args, String[] kws) |
keywords | protected Map keywords(Code) | | Field keywords
|
PyArgParser | public PyArgParser(PyObject[] args, String[] kws)(Code) | | Construct a parser with the arguments and keywords.
|
arg | public PyObject arg(int index)(Code) | | Return the argument at the given index, raise an IndexError if out of range.
|
arg | public PyObject arg(int index, PyObject def)(Code) | | Return the argument at the given index, or the default if the index is out of range.
|
hasKw | public boolean hasKw(String kw)(Code) | | Does the keyword exist?
|
kw | public PyObject kw(String kw)(Code) | | Return the value for the keyword, raise a KeyError if the keyword does
not exist.
|
numArg | public int numArg()(Code) | | Get the number of arguments.
|
numKw | public int numKw()(Code) | | How many keywords?
|
parse | protected void parse(PyObject[] args, String[] kws)(Code) | | Method parse
Parameters: args - Parameters: kws - |
|
|