Class PyNone

All Implemented Interfaces:
Serializable

public class PyNone extends PyObject implements Serializable
A class representing the singleton None object,
See Also:
  • Field Details

  • Method Details

    • typeSetup

      public static void typeSetup(PyObject dict, PyType.Newstyle marker)
    • __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() throws PyIgnoreMethodTag
      Overrides:
      toString in class PyObject
      Throws:
      PyIgnoreMethodTag
    • isMappingType

      public boolean isMappingType()
      Overrides:
      isMappingType in class PyObject
    • isSequenceType

      public boolean isSequenceType()
      Overrides:
      isSequenceType in class PyObject
    • isNumberType

      public boolean isNumberType()
      Overrides:
      isNumberType in class PyObject
    • asStringOrNull

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