| Modifier and Type | Field and Description |
|---|---|
| protected PyObject[] | arguments
Field arguments. |
| protected Map | keywords
Field keywords. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public PyObject | |
| public PyObject | |
| public boolean | |
| public PyObject | |
| public PyObject | |
| public String[] | |
| public int | |
| public int | |
| protected void |
| arguments | back to summary |
|---|---|
| protected PyObject[] arguments Field arguments. | |
| keywords | back to summary |
|---|---|
| protected Map<String, PyObject> keywords Field keywords. | |
| PyArgParser | back to summary |
|---|---|
| public PyArgParser(PyObject[] args, String[] kws) Construct a parser with the arguments and keywords. | |
| arg | back to summary |
|---|---|
| public PyObject arg(int index) Return the argument at the given index, raise an IndexError if out of range. | |
| arg | back to summary |
|---|---|
| public PyObject arg(int index, PyObject def) Return the argument at the given index, or the default if the index is out of range. | |
| hasKw | back to summary |
|---|---|
| public boolean hasKw(String kw) Does the keyword exist? | |
| kw | back to summary |
|---|---|
| public PyObject kw(String kw) Return the value for the keyword, raise a KeyError if the keyword does not exist. | |
| kw | back to summary |
|---|---|
| public PyObject kw(String kw, PyObject def) Return the value for the keyword, return the default if the keyword does not exist. | |
| kws | back to summary |
|---|---|
| public String[] kws() Get the array of keywords. | |
| numArg | back to summary |
|---|---|
| public int numArg() Get the number of arguments. | |
| numKw | back to summary |
|---|---|
| public int numKw() How many keywords? | |
| parse | back to summary |
|---|---|
| protected void parse(PyObject[] args, String[] kws) Method parse | |