Interface PsyTextual
- 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 PsyConvertableToInteger
PSY_TOINTEGERFields inherited from interface PsyConvertableToIntegral
PSY_TOINTEGRALFields inherited from interface PsyConvertableToRational
PSY_TORATIONALFields inherited from interface PsyConvertableToReal
PSY_TOREALFields inherited from interface PsyEvaluable
PSY_EVALFields inherited from interface PsyLengthy
PSY_ISEMPTY, PSY_LENGTHFields inherited from interface PsyObject
PSY_CLONE, PSY_EQ, PSY_HASHCODE, PSY_INSTANCEOF, PSY_NE, PSY_TOSTRING, PSY_TOSTRINGBUFFER, PSY_TYPEFields inherited from interface PsySequential
PSY_FORALLFields inherited from interface 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 Iterable
forEach, spliteratorMethods inherited from interface PsyIterable
psyStream, psyToArray, psyUniteMethods inherited from interface PsyLengthy
isEmpty, psyIsEmpty, psyLengthMethods inherited from interface PsyObject
convert, execute, invoke, psyClone, psyHashCode, psyInstanceOf, psyNe, psySyntax, psyToStringBuffer, psyType, toSyntaxString, typeNameMethods inherited from interface 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
-
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>
-