- All Superinterfaces:
Comparable<PsyTextual>
,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 int
compareTo
(PsyTextual oTextual) default Iterator<PsyInteger>
iterator()
default int
length()
Returns a length of this object.default PsyBoolean
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 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.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.
-
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.
-
compareTo
- Specified by:
compareTo
in interfaceComparable<PsyTextual>
- Specified by:
compareTo
in interfacePsyScalar<PsyTextual>
-
psyEq
-
psySplit
- Throws:
PsyLimitCheckException
-
psyIndexOfChar
-
psyIndexOfSubstring
-
iterator
- Specified by:
iterator
in interfaceIterable<PsyInteger>
-