Class ScalarCData

    • Field Detail

      • TYPE

        public static final PyType TYPE
    • Method Detail

      • setValue

        public void setValue​(PyObject value)
      • asInt

        public int asInt()
        Description copied from class: PyObject
        Convert this object into an int. Throws a PyException on failure.
        Overrides:
        asInt in class PyObject
        Returns:
        an int value
      • asLong

        public long asLong()
        Description copied from class: PyObject
        Convert this object longo an long. Throws a PyException on failure.
        Overrides:
        asLong in class PyObject
        Returns:
        an long value
      • __int__

        public PyObject __int__()
        Description copied from class: PyObject
        Equivalent to the standard Python __int__ method. Should only be overridden by numeric objects that can be reasonably coerced into an integer.
        Overrides:
        __int__ in class PyObject
        Returns:
        an integer corresponding to the value of this object.
      • __long__

        public PyObject __long__()
        Description copied from class: PyObject
        Equivalent to the standard Python __long__ method. Should only be overridden by numeric objects that can be reasonably coerced into a python long.
        Overrides:
        __long__ in class PyObject
        Returns:
        a PyLong or PyInteger corresponding to the value of this object.
      • __float__

        public PyFloat __float__()
        Description copied from class: PyObject
        Equivalent to the standard Python __float__ method. Should only be overridden by numeric objects that can be reasonably coerced into a python float.
        Overrides:
        __float__ in class PyObject
        Returns:
        a float corresponding to the value of this object.
      • toString

        public final java.lang.String toString()
        Overrides:
        toString in class PyObject