Class PyNone

All Implemented Interfaces:
Serializable

public class PyNone extends PyObject implements Serializable
The singleton None object.
See Also:
  • Field Details

    • TYPE

      public static final PyType TYPE
  • Method Details

    • __nonzero__

      public boolean __nonzero__()
      Description copied from class: PyObject
      Equivalent to the standard Python __nonzero__ method. Returns whether of not a given PyObject is considered true.
      Overrides:
      __nonzero__ in class PyObject
    • __tojava__

      public Object __tojava__(Class<?> c)
      Description copied from class: PyObject
      Equivalent to the Jython __tojava__ method. Tries to coerce this object to an instance of the requested Java class. Returns the special object Py.NoConversion if this PyObject can not be converted to the desired Java class.
      Overrides:
      __tojava__ in class PyObject
      Parameters:
      c - the Class to convert this PyObject to.
    • toString

      public String toString()
      Overrides:
      toString in class PyObject
    • asStringOrNull

      public String asStringOrNull(int index)
      Overrides:
      asStringOrNull in class PyObject
    • asStringOrNull

      public String asStringOrNull()
      Overrides:
      asStringOrNull in class PyObject