- 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 ContextActionContext action of theindexofcharoperator.static final ContextActionContext action of theindexofsubstringoperator.static final ContextActionContext action of thelowercaseoperator.static final ContextActionContext action of thesplitoperator.static final ContextActionContext action of theuppercaseoperator.Fields inherited from interface coneforest.psylla.core.PsyConvertableToInteger
PSY_TOINTEGERFields inherited from interface coneforest.psylla.core.PsyConvertableToIntegral
PSY_TOINTEGRALFields inherited from interface coneforest.psylla.core.PsyConvertableToRational
PSY_TORATIONALFields inherited from interface coneforest.psylla.core.PsyConvertableToReal
PSY_TOREALFields inherited from interface coneforest.psylla.core.PsyEvaluable
PSY_EVALFields inherited from interface coneforest.psylla.core.PsyLengthy
PSY_ISEMPTY, PSY_LENGTHFields inherited from interface coneforest.psylla.core.PsyObject
PSY_CLONE, PSY_EQ, PSY_HASHCODE, PSY_INSTANCEOF, PSY_NE, PSY_TOSTRING, PSY_TOSTRINGBUFFER, PSY_TYPEFields inherited from interface coneforest.psylla.core.PsyScalar
PSY_CMP, PSY_GE, PSY_GT, PSY_LE, PSY_LT, PSY_MAX, PSY_MINFields inherited from interface coneforest.psylla.core.PsySequential
PSY_FORALLFields inherited from interface coneforest.psylla.core.PsyStreamable
PSY_STREAM -
Method Summary
Modifier and TypeMethodDescriptiondefault intcompareTo(PsyTextual oTextual) Compares thisscalarwith the specifiedscalarfor order.default Iterator<PsyInteger> iterator()default intlength()Returns a length of this object.default PsyBooleanReturns abooleanresult of equality test of thisobjectand givenobject.default voidpsyEval(PsyContext oContext) Evaluate this object in the current context.default Optional<PsyInteger> psyIndexOfChar(PsyInteger oChar, PsyInteger oFrom) default Optional<PsyInteger> psyIndexOfSubstring(PsyTextual oStr, PsyInteger oFrom) default PsyArraydefault PsyIntegerdefault PsyIntegraldefault PsyRationaldefault PsyRealdefault PsyStringReturns astringrepresenting this object.Returns a string value of this object.Methods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface coneforest.psylla.core.PsyIterable
psyStream, psyToArray, psyUniteMethods inherited from interface coneforest.psylla.core.PsyLengthy
isEmpty, psyIsEmpty, psyLengthMethods inherited from interface coneforest.psylla.core.PsyObject
convert, execute, invoke, psyClone, psyHashCode, psyInstanceOf, psyNe, psySyntax, psyToStringBuffer, psyType, toSyntaxString, typeNameMethods inherited from interface coneforest.psylla.core.PsyScalar
psyCmp, psyGe, psyGt, psyLe, psyLt, psyMax, psyMinMethods inherited from interface coneforest.psylla.core.PsyStreamable
psyForAll
-
Field Details
-
PSY_INDEXOFCHAR
Context action of theindexofcharoperator. -
PSY_INDEXOFSUBSTRING
Context action of theindexofsubstringoperator. -
PSY_LOWERCASE
Context action of thelowercaseoperator. -
PSY_SPLIT
Context action of thesplitoperator. -
PSY_UPPERCASE
Context action of theuppercaseoperator.
-
-
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:PsyObjectReturns astringrepresenting this object.- Specified by:
psyToStringin interfacePsyObject- Returns:
- a
stringrepresenting this object
-
psyEval
Description copied from interface:PsyEvaluableEvaluate this object in the current context.- Specified by:
psyEvalin interfacePsyEvaluable- Throws:
PsyErrorException- when an error occurs durind evaluation of this object.
-
psyToInteger
- Specified by:
psyToIntegerin interfacePsyConvertableToInteger- Throws:
PsySyntaxErrorException
-
psyToIntegral
- Specified by:
psyToIntegralin interfacePsyConvertableToIntegral- Throws:
PsySyntaxErrorException
-
psyToRational
- Specified by:
psyToRationalin interfacePsyConvertableToRational- Throws:
PsySyntaxErrorExceptionPsyUndefinedResultException
-
psyToReal
- 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 of this object
-
compareTo
Description copied from interface:PsyScalarCompares thisscalarwith the specifiedscalarfor 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:
compareToin interfaceComparable<PsyTextual>- Specified by:
compareToin interfacePsyScalar<PsyTextual>- Parameters:
oTextual- thescalarto 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:PsyObjectReturns abooleanresult of equality test of thisobjectand givenobject. -
psySplit
- Throws:
PsyLimitCheckException
-
psyIndexOfChar
-
psyIndexOfSubstring
-
iterator
- Specified by:
iteratorin interfaceIterable<PsyInteger>
-