Class PyNone

  • All Implemented Interfaces:
    java.io.Serializable

    public class PyNone
    extends PyObject
    implements java.io.Serializable
    The singleton None object.
    See Also:
    Serialized Form
    • Field Detail

      • TYPE

        public static final PyType TYPE
    • Method Detail

      • __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 java.lang.Object __tojava__​(java.lang.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 java.lang.String toString()
        Overrides:
        toString in class PyObject
      • asStringOrNull

        public java.lang.String asStringOrNull​(int index)
        Overrides:
        asStringOrNull in class PyObject