Class PyUnicode

All Implemented Interfaces:
Serializable, ClassDictInit
Direct Known Subclasses:
PyUnicodeDerived

public class PyUnicode extends PyString
a builtin python unicode string.
See Also:
  • Field Details

  • Constructor Details

    • PyUnicode

      public PyUnicode()
    • PyUnicode

      public PyUnicode(String string)
    • PyUnicode

      public PyUnicode(PyType subtype, String string)
    • PyUnicode

      public PyUnicode(PyString pystring)
    • PyUnicode

      public PyUnicode(PyType subtype, PyString pystring)
    • PyUnicode

      public PyUnicode(char c)
  • Method Details

    • typeSetup

      public static void typeSetup(PyObject dict, PyType.Newstyle marker)
    • classDictInit

      public static void classDictInit(PyObject dict) throws PyIgnoreMethodTag
      Internal use only. Do not call this method explicitly.
      Throws:
      PyIgnoreMethodTag
    • safeRepr

      public String safeRepr() throws PyIgnoreMethodTag
      Overrides:
      safeRepr in class PyString
      Throws:
      PyIgnoreMethodTag
    • createInstance

      public PyString createInstance(String str)
      Overrides:
      createInstance in class PyString
    • __mod__

      public PyObject __mod__(PyObject other)
      Description copied from class: PyObject
      Equivalent to the standard Python __mod__ method
      Overrides:
      __mod__ in class PyString
      Parameters:
      other - the object to perform this binary operation with (the right-hand operand).
      Returns:
      the result of the mod, or null if this operation is not defined
    • __str__

      public PyString __str__()
      Description copied from class: PyObject
      Equivalent to the standard Python __str__ method. This method should not typically need to be overridden. The easiest way to configure the string representation of a PyObject is to override the standard Java toString method.
      Overrides:
      __str__ in class PyString
    • unicode___str__

      public PyString unicode___str__()
    • __repr__

      public PyString __repr__()
      Description copied from class: PyObject
      Equivalent to the standard Python __repr__ method. This method should not typically need to be overrriden. The easiest way to configure the string representation of a PyObject is to override the standard Java toString method.
      Overrides:
      __repr__ in class PyString
    • unicode_toString

      public String unicode_toString()