- All Superinterfaces:
Iterable<PsyInteger>
,PsyConvertableToInteger
,PsyConvertableToIntegral
,PsyConvertableToReal
,PsyEvaluable
,PsyIterable<PsyInteger>
,PsyLengthy
,PsyObject
,PsyScalar<PsyTextual>
,PsySequential<PsyInteger>
,PsyStreamable<PsyInteger>
- All Known Implementing Classes:
PsyCommand
,PsyName
,PsyString
@Type("textual")
public interface PsyTextual
extends PsyEvaluable, PsyConvertableToInteger, PsyConvertableToIntegral, PsyConvertableToReal, PsyIterable<PsyInteger>, PsyLengthy, PsyScalar<PsyTextual>
The representation of
textual
, a basic type of mutable and immutable strings.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ContextAction
Context action of theindexofchar
operator.static final ContextAction
Context action of theindexofsubstring
operator.static final ContextAction
Context action of thelowercase
operator.static final ContextAction
Context action of thesplit
operator.static final ContextAction
Context action of theuppercase
operator.Fields inherited from interface coneforest.psylla.core.PsyConvertableToInteger
PSY_TOINTEGER
Fields inherited from interface coneforest.psylla.core.PsyConvertableToIntegral
PSY_TOINTEGRAL
Fields inherited from interface coneforest.psylla.core.PsyConvertableToReal
PSY_TOREAL
Fields inherited from interface coneforest.psylla.core.PsyEvaluable
PSY_EVAL
Fields inherited from interface coneforest.psylla.core.PsyLengthy
PSY_ISEMPTY, PSY_LENGTH
Fields inherited from interface coneforest.psylla.core.PsyObject
PSY_CLONE, PSY_EQ, PSY_HASHCODE, PSY_INSTANCEOF, PSY_NE, PSY_TONAME, PSY_TOSTRING, PSY_TYPE
Fields inherited from interface coneforest.psylla.core.PsyScalar
PSY_CMP, PSY_GE, PSY_GT, PSY_LE, PSY_LT, PSY_MAX, PSY_MIN
Fields inherited from interface coneforest.psylla.core.PsySequential
PSY_FORALL
Fields inherited from interface coneforest.psylla.core.PsyStreamable
PSY_STREAM
-
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
-
PSY_INDEXOFCHAR
Context action of theindexofchar
operator. -
PSY_INDEXOFSUBSTRING
Context action of theindexofsubstring
operator. -
PSY_LOWERCASE
Context action of thelowercase
operator. -
PSY_SPLIT
Context action of thesplit
operator. -
PSY_UPPERCASE
Context action of theuppercase
operator.
-
-
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. -
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:
PsySyntaxErrorException
-
psyToIntegral
- Specified by:
psyToIntegral
in interfacePsyConvertableToIntegral
- Throws:
PsySyntaxErrorException
-
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:
PsyLimitCheckException
-
psyIndexOfChar
-
psyIndexOfSubstring
-
iterator
- Specified by:
iterator
in interfaceIterable<PsyInteger>
-