PyBuiltinFunction.Infopublic static class PyBuiltinFunction.DefaultInfo extends java.lang.Object implements PyBuiltinFunction.Info
| Constructor | Description |
|---|---|
DefaultInfo(java.lang.String name,
int nargs) |
|
DefaultInfo(java.lang.String name,
int minargs,
int maxargs) |
| Modifier and Type | Method | Description |
|---|---|---|
static boolean |
check(int nargs,
int minargs,
int maxargs) |
|
int |
getMaxargs() |
|
int |
getMinargs() |
|
java.lang.String |
getName() |
|
PyException |
unexpectedCall(int nargs,
boolean keywords) |
|
static PyException |
unexpectedCall(int nargs,
boolean keywords,
java.lang.String name,
int minargs,
int maxargs) |
public DefaultInfo(java.lang.String name,
int minargs,
int maxargs)
public DefaultInfo(java.lang.String name,
int nargs)
public java.lang.String getName()
getName in interface PyBuiltinFunction.Infopublic int getMaxargs()
getMaxargs in interface PyBuiltinFunction.Infopublic int getMinargs()
getMinargs in interface PyBuiltinFunction.Infopublic static boolean check(int nargs,
int minargs,
int maxargs)
public static PyException unexpectedCall(int nargs, boolean keywords, java.lang.String name, int minargs, int maxargs)
public PyException unexpectedCall(int nargs, boolean keywords)
unexpectedCall in interface PyBuiltinFunction.Info