Package sanskrit

Class Builtin

java.lang.Object
sanskrit.Builtin

public final class Builtin extends Object
A function implemented in Java.
  • Method Details

    • of

      public static Builtin of(String name, Builtin.Fn fn)
      A function written in Java, to be given to Python by the host (a decorator, for instance).
    • none

      public static Object none()
      The Python value None, for a function that returns nothing.
    • typeError

      public static PyError typeError(String message)
      A Python TypeError, to be thrown from a Builtin.Fn.
    • runtimeError

      public static PyError runtimeError(String message)
      A Python RuntimeError, to be thrown from a Builtin.Fn.
    • valueError

      public static PyError valueError(String message)
      A Python ValueError, to be thrown from a Builtin.Fn.