Class PyShadowString

    • Field Detail

      • TYPE

        public static final PyType TYPE
    • Constructor Detail

      • PyShadowString

        public PyShadowString()
      • PyShadowString

        public PyShadowString​(java.lang.String str,
                              java.lang.String shadow)
      • PyShadowString

        public PyShadowString​(java.lang.String str,
                              java.lang.String shadow,
                              boolean isBytes)
      • PyShadowString

        public PyShadowString​(java.lang.String str,
                              java.lang.String shadow,
                              boolean isBytes,
                              PyList targets)
      • PyShadowString

        public PyShadowString​(PyObject str,
                              java.lang.String shadow)
      • PyShadowString

        public PyShadowString​(PyType subtype,
                              java.lang.String str,
                              java.lang.String shadow)
      • PyShadowString

        public PyShadowString​(PyType subtype,
                              PyObject str,
                              java.lang.String shadow)
    • Method Detail

      • getShadow

        public java.lang.String getShadow()
      • getshadow

        public PyString getshadow()
      • shadowstr_getshadow

        public final PyObject shadowstr_getshadow()
      • addTarget

        public void addTarget​(java.lang.String className,
                              java.lang.String methodName)
      • shadowstr_addtarget

        public final void shadowstr_addtarget​(PyObject classname,
                                              PyObject methodname)
      • getTargets

        public PyList getTargets()
      • shadowstr_gettargets

        public final PyObject shadowstr_gettargets()
      • __eq__

        public PyObject __eq__​(PyObject other)
        Description copied from class: PyObject
        Equivalent to the standard Python __eq__ method.
        Overrides:
        __eq__ in class PyString
        Parameters:
        other - the object to compare this with.
        Returns:
        the result of the comparison.
      • startswith

        public boolean startswith​(PyObject prefix)
        Description copied from class: PyString
        Equivalent to the Python str.startswith method testing whether a string starts with a specified prefix. prefix can also be a tuple of prefixes to look for.
        Overrides:
        startswith in class PyString
        Parameters:
        prefix - string to check for (or a PyTuple of them).
        Returns:
        true if this string slice starts with a specified prefix, otherwise false.
      • startswith

        public boolean startswith​(PyObject prefix,
                                  PyObject start)
        Description copied from class: PyString
        Equivalent to the Python str.startswith method, testing whether a string starts with a specified prefix, where a sub-range is specified by [start:]. start is interpreted as in slice notation, with null or Py.None representing "missing". prefix can also be a tuple of prefixes to look for.
        Overrides:
        startswith in class PyString
        Parameters:
        prefix - string to check for (or a PyTuple of them).
        start - start of slice.
        Returns:
        true if this string slice starts with a specified prefix, otherwise false.
      • startswith

        public boolean startswith​(PyObject prefix,
                                  PyObject start,
                                  PyObject end)
        Description copied from class: PyString
        Equivalent to the Python str.startswith method, testing whether a string starts with a specified prefix, where a sub-range is specified by [start:end]. Arguments start and end are interpreted as in slice notation, with null or Py.None representing "missing". prefix can also be a tuple of prefixes to look for.
        Overrides:
        startswith in class PyString
        Parameters:
        prefix - string to check for (or a PyTuple of them).
        start - start of slice.
        end - end of slice.
        Returns:
        true if this string slice starts with a specified prefix, otherwise false.
      • __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