Package coneforest.psylla.core
Interface PsyTextual
-
- All Superinterfaces:
Iterable<PsyInteger>,PsyConvertableToInteger,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, PsyConvertableToReal, PsyIterable<PsyInteger>, PsyLengthy, PsyScalar<PsyTextual>
A representation of Ψ-textual, a basic type of mutable and immutable strings.
-
-
Field Summary
Fields Modifier and Type Field Description static PsyOperator[]OPERATORS
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default Iterator<PsyInteger>iterator()default intlength()Returns a length of this object.default PsyIntegerpsyCmp(PsyTextual oString)Compares this object against given object and returns a Ψ-integerindicating the result of the comparison.default PsyBooleanpsyEq(PsyObject o)default voidpsyEval()Evaluate this object in the current context.default PsyBooleanpsyGe(PsyTextual oString)Returns a Ψ-booleanobject representing the result of “greater or equal” comparison of this object and a given object.default PsyBooleanpsyGt(PsyTextual oString)Returns a Ψ-booleanobject representing the result of “greater” comparison of this object and a given object.default PsyIntegerpsyIndexOfChar(PsyInteger oChar, PsyInteger oFrom)default PsyIntegerpsyIndexOfSubstring(PsyTextual oStr, PsyInteger oFrom)default PsyBooleanpsyLe(PsyTextual oString)Returns a Ψ-booleanobject representing the result of “less or equal” comparison of this object and a given object.PsyTextualpsyLowerCase()default PsyBooleanpsyLt(PsyTextual oString)Returns a Ψ-booleanobject representing the result of “less” comparison of this object and a given object.default PsyArraypsySplit(PsyRegExp oRegExp)default PsyIntegerpsyToInteger()default PsyNamepsyToName()Returns a Ψ-namerepresenting this object.default PsyRealpsyToReal()PsyTextualpsyUpperCase()StringstringValue()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 Detail
-
OPERATORS
static final PsyOperator[] OPERATORS
-
-
Method Detail
-
stringValue
String stringValue()
Returns a string value of this object.- Returns:
- a string value.
-
psyUpperCase
PsyTextual psyUpperCase()
-
psyLowerCase
PsyTextual psyLowerCase()
-
psyToName
default PsyName psyToName()
Description copied from interface:PsyObjectReturns a Ψ-namerepresenting this object.- Specified by:
psyToNamein interfacePsyConvertableToName- Specified by:
psyToNamein interfacePsyObject- Returns:
- a Ψ-
namerepresenting this object.
-
psyEval
default void psyEval() throws PsyExceptionDescription copied from interface:PsyEvaluableEvaluate this object in the current context.- Specified by:
psyEvalin interfacePsyEvaluable- Throws:
PsyException- when an error occurs durind evaluation of this object.
-
psyToInteger
default PsyInteger psyToInteger() throws PsyException
- Specified by:
psyToIntegerin interfacePsyConvertableToInteger- Throws:
PsyException
-
psyToReal
default PsyReal psyToReal() throws PsySyntaxErrorException
- Specified by:
psyToRealin interfacePsyConvertableToReal- Throws:
PsySyntaxErrorException
-
length
default int length()
Description copied from interface:PsyLengthyReturns a length of this object.- Specified by:
lengthin interfacePsyLengthy- Returns:
- a length.
-
psyEq
default PsyBoolean psyEq(PsyObject o)
-
psyLt
default PsyBoolean psyLt(PsyTextual oString)
Description copied from interface:PsyScalarReturns a Ψ-booleanobject representing the result of “less” comparison of this object and a given object.- Specified by:
psyLtin 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
default PsyBoolean psyLe(PsyTextual oString)
Description copied from interface:PsyScalarReturns a Ψ-booleanobject representing the result of “less or equal” comparison of this object and a given object.- Specified by:
psyLein 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
default PsyBoolean psyGt(PsyTextual oString)
Description copied from interface:PsyScalarReturns a Ψ-booleanobject representing the result of “greater” comparison of this object and a given object.- Specified by:
psyGtin interfacePsyScalar<PsyTextual>- Parameters:
oString- an object with which this object is compared.- Returns:
- a Ψ-
booleanresult of comparison.
-
psyGe
default PsyBoolean psyGe(PsyTextual oString)
Description copied from interface:PsyScalarReturns a Ψ-booleanobject representing the result of “greater or equal” comparison of this object and a given object.- Specified by:
psyGein interfacePsyScalar<PsyTextual>- Parameters:
oString- an object with which this object is compared.- Returns:
- a Ψ-
booleanresult of comparison.
-
psyCmp
default PsyInteger psyCmp(PsyTextual oString)
Description copied from interface:PsyScalarCompares this object against given object and returns a Ψ-integerindicating 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:
psyCmpin interfacePsyScalar<PsyTextual>- Parameters:
oString- an object with which this object is compared.- Returns:
- a result of the comparison.
-
psySplit
default PsyArray psySplit(PsyRegExp oRegExp) throws PsyException
- Throws:
PsyException
-
psyIndexOfChar
default PsyInteger psyIndexOfChar(PsyInteger oChar, PsyInteger oFrom)
-
psyIndexOfSubstring
default PsyInteger psyIndexOfSubstring(PsyTextual oStr, PsyInteger oFrom)
-
iterator
default Iterator<PsyInteger> iterator()
- Specified by:
iteratorin interfaceIterable<PsyInteger>
-
-