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