Package sanskrit
Class Builtin
java.lang.Object
sanskrit.Builtin
A function implemented in Java.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceThe body of a function written in Java: the interpreter and the positional arguments (Python values). -
Method Summary
Modifier and TypeMethodDescriptionstatic Objectnone()The Python valueNone, for a function that returns nothing.static Builtinof(String name, Builtin.Fn fn) A function written in Java, to be given to Python by the host (a decorator, for instance).static PyErrorruntimeError(String message) A PythonRuntimeError, to be thrown from aBuiltin.Fn.static PyErrorA PythonTypeError, to be thrown from aBuiltin.Fn.static PyErrorvalueError(String message) A PythonValueError, to be thrown from aBuiltin.Fn.
-
Method Details
-
of
A function written in Java, to be given to Python by the host (a decorator, for instance). -
none
The Python valueNone, for a function that returns nothing. -
typeError
A PythonTypeError, to be thrown from aBuiltin.Fn. -
runtimeError
A PythonRuntimeError, to be thrown from aBuiltin.Fn. -
valueError
A PythonValueError, to be thrown from aBuiltin.Fn.
-