Interface PsyStringy

    • Method Detail

      • stringValue

        String stringValue()
        Returns a string value of this object.
        Returns:
        a string value.
      • eval

        default void eval​(Interpreter interpreter)
                   throws PsyException
        Description copied from interface: PsyEvaluable
        Evaluate this object in the context of given interpreter.
        Specified by:
        eval in interface PsyEvaluable
        Parameters:
        interpreter - an interpreter.
        Throws:
        PsyException - when an error occurs durind evaluation of this object.
      • length

        default int length()
        Description copied from interface: PsyLengthy
        Returns a length of this object.
        Specified by:
        length in interface PsyLengthy
        Returns:
        a length.
      • psyLt

        default PsyBoolean psyLt​(PsyStringy oString)
        Description copied from interface: PsyScalar
        Returns a Ψ-boolean object representing the result of “less” comparison of this object and a given object.
        Specified by:
        psyLt in interface PsyScalar<PsyStringy>
        Parameters:
        oString - an object with which this object is compared.
        Returns:
        a Ψ boolean value indicating if this object is less than given object.
      • psyLe

        default PsyBoolean psyLe​(PsyStringy oString)
        Description copied from interface: PsyScalar
        Returns a Ψ-boolean object representing the result of “less or equal” comparison of this object and a given object.
        Specified by:
        psyLe in interface PsyScalar<PsyStringy>
        Parameters:
        oString - an object with which this object is compared.
        Returns:
        a Ψ boolean value indicating if this object is less than or equal to given object.
      • psyGt

        default PsyBoolean psyGt​(PsyStringy oString)
        Description copied from interface: PsyScalar
        Returns a Ψ-boolean object representing the result of “greater” comparison of this object and a given object.
        Specified by:
        psyGt in interface PsyScalar<PsyStringy>
        Parameters:
        oString - an object with which this object is compared.
        Returns:
        a Ψ-boolean result of comparison.
      • psyGe

        default PsyBoolean psyGe​(PsyStringy oString)
        Description copied from interface: PsyScalar
        Returns a Ψ-boolean object representing the result of “greater or equal” comparison of this object and a given object.
        Specified by:
        psyGe in interface PsyScalar<PsyStringy>
        Parameters:
        oString - an object with which this object is compared.
        Returns:
        a Ψ-boolean result of comparison.
      • psyCmp

        default PsyInteger psyCmp​(PsyStringy oString)
        Description copied from interface: PsyScalar
        Compares this object against given object and returns a Ψ- integer indicating the result of the comparison. Returns negative value if this object is less than given one, zero if this object is equal to given one, and positive value if this object is greater than given one.
        Specified by:
        psyCmp in interface PsyScalar<PsyStringy>
        Parameters:
        oString - an object with which this object is compared.
        Returns:
        a result of the comparison.