Package org.python.core
Class PyBuiltinFunction.DefaultInfo
java.lang.Object
org.python.core.PyBuiltinFunction.DefaultInfo
- All Implemented Interfaces:
PyBuiltinFunction.Info
- Enclosing class:
- PyBuiltinFunction
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultInfo(String name, int nargs) DefaultInfo(String name, int minargs, int maxargs) -
Method Summary
Modifier and TypeMethodDescriptionstatic booleancheck(int nargs, int minargs, int maxargs) intintgetName()unexpectedCall(int nargs, boolean keywords) static PyExceptionunexpectedCall(int nargs, boolean keywords, String name, int minargs, int maxargs)
-
Constructor Details
-
DefaultInfo
-
DefaultInfo
-
-
Method Details
-
getName
- Specified by:
getNamein interfacePyBuiltinFunction.Info
-
getMaxargs
public int getMaxargs()- Specified by:
getMaxargsin interfacePyBuiltinFunction.Info
-
getMinargs
public int getMinargs()- Specified by:
getMinargsin interfacePyBuiltinFunction.Info
-
check
public static boolean check(int nargs, int minargs, int maxargs) -
unexpectedCall
public static PyException unexpectedCall(int nargs, boolean keywords, String name, int minargs, int maxargs) -
unexpectedCall
- Specified by:
unexpectedCallin interfacePyBuiltinFunction.Info
-