org.python.core.PyBuiltinFunction Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jython-standalone Show documentation
Show all versions of jython-standalone Show documentation
Jython is an implementation of the high-level, dynamic, object-oriented
language Python written in 100% Pure Java, and seamlessly integrated with
the Java platform. It thus allows you to run Python on any Java platform.
package org.python.core;
import org.python.expose.ExposeAsSuperclass;
public class PyBuiltinFunction extends PyBuiltinCallable implements ExposeAsSuperclass {
protected PyBuiltinFunction(String name, String doc) {
this(name, -1, -1, doc);
}
protected PyBuiltinFunction(String name, int minargs, int maxargs, String doc) {
super(new DefaultInfo(name, minargs, maxargs));
this.doc = doc == null ? null : doc;
}
public boolean isMappingType() {
return false;
}
public boolean isNumberType() {
return false;
}
public boolean isSequenceType() {
return false;
}
public PyBuiltinCallable bind(PyObject self) {
throw Py.TypeError("Can't bind a builtin function");
}
public String toString() {
return "";
}
}