- All Superinterfaces:
Comparable<PsyTextual>
,Iterable<PsyInteger>
,PsyConvertableToInteger
,PsyConvertableToIntegral
,PsyConvertableToRational
,PsyConvertableToReal
,PsyEvaluable
,PsyIterable<PsyInteger>
,PsyLengthy
,PsyObject
,PsyScalar<PsyTextual>
,PsySequential<PsyInteger>
,PsyStreamable<PsyInteger>
- All Known Implementing Classes:
PsyName
,PsyString
,PsyStringBuffer
@Type("textual")
public interface PsyTextual
extends PsyEvaluable, PsyConvertableToInteger, PsyConvertableToIntegral, PsyConvertableToRational, 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.PsyConvertableToRational
PSY_TORATIONAL
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_TOSTRING, PSY_TOSTRINGBUFFER, 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 int
compareTo
(PsyTextual oTextual) Compares thisscalar
with the specifiedscalar
for order.default Iterator
<PsyInteger> iterator()
default int
length()
Returns a length of this object.default PsyBoolean
Returns aboolean
result of equality test of thisobject
and givenobject
.default void
psyEval
(PsyContext oContext) Evaluate this object in the current context.default PsyInteger
psyIndexOfChar
(PsyInteger oChar, PsyInteger oFrom) default PsyInteger
psyIndexOfSubstring
(PsyTextual oStr, PsyInteger oFrom) default PsyArray
default PsyInteger
default PsyIntegral
default PsyRational
default PsyReal
default PsyString
Returns astring
representing this object.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, psyToStringBuffer, psyType, toSyntaxString, typeName
Methods inherited from interface coneforest.psylla.core.PsyScalar
psyCmp, psyGe, psyGt, psyLe, psyLt, psyMax, psyMin
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 of this object
-
psyUpperCase
PsyTextual psyUpperCase() -
psyLowerCase
PsyTextual psyLowerCase() -
psyToString
Description copied from interface:PsyObject
Returns astring
representing this object.- Specified by:
psyToString
in interfacePsyObject
- Returns:
- a
string
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
-
psyToRational
- Specified by:
psyToRational
in interfacePsyConvertableToRational
- Throws:
PsySyntaxErrorException
PsyUndefinedResultException
-
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 of this object
-
compareTo
Description copied from interface:PsyScalar
Compares thisscalar
with the specifiedscalar
for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specifiedscalar
.- Specified by:
compareTo
in interfaceComparable<PsyTextual>
- Specified by:
compareTo
in interfacePsyScalar<PsyTextual>
- Parameters:
oTextual
- thescalar
to be compared.- Returns:
- a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified.
-
psyEq
Description copied from interface:PsyObject
Returns aboolean
result of equality test of thisobject
and givenobject
. -
psySplit
- Throws:
PsyLimitCheckException
-
psyIndexOfChar
-
psyIndexOfSubstring
-
iterator
- Specified by:
iterator
in interfaceIterable<PsyInteger>
-