Package org.python.core
Class PyBuiltinFunction.DefaultInfo
- java.lang.Object
-
- org.python.core.PyBuiltinFunction.DefaultInfo
-
- All Implemented Interfaces:
PyBuiltinFunction.Info
- Enclosing class:
- PyBuiltinFunction
public static class PyBuiltinFunction.DefaultInfo extends java.lang.Object implements PyBuiltinFunction.Info
-
-
Constructor Summary
Constructors Constructor Description DefaultInfo(java.lang.String name, int nargs)
DefaultInfo(java.lang.String name, int minargs, int maxargs)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods 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)
-
-
-
Method Detail
-
getName
public java.lang.String getName()
- Specified by:
getName
in interfacePyBuiltinFunction.Info
-
getMaxargs
public int getMaxargs()
- Specified by:
getMaxargs
in interfacePyBuiltinFunction.Info
-
getMinargs
public int getMinargs()
- Specified by:
getMinargs
in interfacePyBuiltinFunction.Info
-
check
public static boolean check(int nargs, int minargs, int maxargs)
-
unexpectedCall
public static PyException unexpectedCall(int nargs, boolean keywords, java.lang.String name, int minargs, int maxargs)
-
unexpectedCall
public PyException unexpectedCall(int nargs, boolean keywords)
- Specified by:
unexpectedCall
in interfacePyBuiltinFunction.Info
-
-