Package coneforest.psylla.core
Interface PsyTextual
- All Superinterfaces:
Iterable<PsyInteger>
,PsyConvertableToInteger
,PsyConvertableToIntegral
,PsyConvertableToName
,PsyConvertableToReal
,PsyConvertableToString
,PsyEvaluable
,PsyIterable<PsyInteger>
,PsyLengthy
,PsyObject
,PsyScalar<PsyTextual>
,PsySequential<PsyInteger>
,PsyStreamable<PsyInteger>
- All Known Implementing Classes:
PsyCommand
,PsyName
,PsyString
public interface PsyTextual
extends PsyEvaluable, PsyConvertableToInteger, PsyConvertableToIntegral, PsyConvertableToReal, PsyIterable<PsyInteger>, PsyLengthy, PsyScalar<PsyTextual>
A representation of
textual
, a basic type of mutable and immutable
strings.-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiondefault Iterator<PsyInteger>
iterator()
default int
length()
Returns a length of this object.default PsyInteger
psyCmp
(PsyTextual oString) Compares this object against given object and returns aninteger
indicating the result of the comparison.default PsyBoolean
default void
psyEval()
Evaluate this object in the current context.default PsyBoolean
psyGe
(PsyTextual oString) Returns aboolean
object representing the result of “greater or equal” comparison of this object and a given object.default PsyBoolean
psyGt
(PsyTextual oString) Returns aboolean
object representing the result of “greater” comparison of this object and a given object.default PsyInteger
psyIndexOfChar
(PsyInteger oChar, PsyInteger oFrom) default PsyInteger
psyIndexOfSubstring
(PsyTextual oStr, PsyInteger oFrom) default PsyBoolean
psyLe
(PsyTextual oString) Returns aboolean
object representing the result of “less or equal” comparison of this object and a given object.default PsyBoolean
psyLt
(PsyTextual oString) Returns aboolean
object representing the result of “less” comparison of this object and a given object.default PsyArray
default PsyInteger
default PsyIntegral
default PsyName
Returns aname
representing this object.default PsyReal
Returns a string value of this object.Methods inherited from interface java.lang.Iterable
forEach, spliterator
Methods inherited from interface coneforest.psylla.core.PsyIterable
psyStream, psyToArray, psyUnite
Methods inherited from interface coneforest.psylla.core.PsyLengthy
isEmpty, psyIsEmpty, psyLength
Methods inherited from interface coneforest.psylla.core.PsyObject
convert, execute, invoke, psyClone, psyHashCode, psyInstanceOf, psyNe, psySyntax, psyToString, psyType, toSyntaxString, typeName
Methods inherited from interface coneforest.psylla.core.PsyStreamable
psyForAll
-
Field Details
-
OPERATORS
-
-
Method Details
-
stringValue
String stringValue()Returns a string value of this object.- Returns:
- a string value.
-
psyUpperCase
PsyTextual psyUpperCase() -
psyLowerCase
PsyTextual psyLowerCase() -
psyToName
Description copied from interface:PsyObject
Returns aname
representing this object.- Specified by:
psyToName
in interfacePsyConvertableToName
- Specified by:
psyToName
in interfacePsyObject
- Returns:
- a
name
representing this object.
-
psyEval
Description copied from interface:PsyEvaluable
Evaluate this object in the current context.- Specified by:
psyEval
in interfacePsyEvaluable
- Throws:
PsyErrorException
- when an error occurs durind evaluation of this object.
-
psyToInteger
- Specified by:
psyToInteger
in interfacePsyConvertableToInteger
- Throws:
PsyErrorException
-
psyToIntegral
- Specified by:
psyToIntegral
in interfacePsyConvertableToIntegral
- Throws:
PsyErrorException
-
psyToReal
- Specified by:
psyToReal
in interfacePsyConvertableToReal
- Throws:
PsySyntaxErrorException
-
length
default int length()Description copied from interface:PsyLengthy
Returns a length of this object.- Specified by:
length
in interfacePsyLengthy
- Returns:
- a length.
-
psyEq
-
psyLt
Description copied from interface:PsyScalar
Returns aboolean
object representing the result of “less” comparison of this object and a given object.- Specified by:
psyLt
in interfacePsyScalar<PsyTextual>
- Parameters:
oString
- an object with which this object is compared.- Returns:
- a Ψ boolean value indicating if this object is less than given object.
-
psyLe
Description copied from interface:PsyScalar
Returns aboolean
object representing the result of “less or equal” comparison of this object and a given object.- Specified by:
psyLe
in interfacePsyScalar<PsyTextual>
- 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
Description copied from interface:PsyScalar
Returns aboolean
object representing the result of “greater” comparison of this object and a given object.- Specified by:
psyGt
in interfacePsyScalar<PsyTextual>
- Parameters:
oString
- an object with which this object is compared.- Returns:
- a
boolean
result of comparison.
-
psyGe
Description copied from interface:PsyScalar
Returns aboolean
object representing the result of “greater or equal” comparison of this object and a given object.- Specified by:
psyGe
in interfacePsyScalar<PsyTextual>
- Parameters:
oString
- an object with which this object is compared.- Returns:
- a
boolean
result of comparison.
-
psyCmp
Description copied from interface:PsyScalar
Compares this object against given object and returns aninteger
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 interfacePsyScalar<PsyTextual>
- Parameters:
oString
- an object with which this object is compared.- Returns:
- a result of the comparison.
-
psySplit
- Throws:
PsyErrorException
-
psyIndexOfChar
-
psyIndexOfSubstring
-
iterator
- Specified by:
iterator
in interfaceIterable<PsyInteger>
-