- 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 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.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_TONAME, PSY_TOSTRING, 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) default Iterator<PsyInteger>iterator()default intlength()Returns a length of this object.default PsyBooleandefault voidpsyEval(PsyContext oContext) Evaluate this object in the current context.default PsyIntegerpsyIndexOfChar(PsyInteger oChar, PsyInteger oFrom) default PsyIntegerpsyIndexOfSubstring(PsyTextual oStr, PsyInteger oFrom) default PsyArraydefault PsyIntegerdefault PsyIntegraldefault PsyNameReturns anamerepresenting this object.default PsyRealReturns 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, psyToString, 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.
-
psyUpperCase
PsyTextual psyUpperCase() -
psyLowerCase
PsyTextual psyLowerCase() -
psyToName
Description copied from interface:PsyObjectReturns anamerepresenting 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
-
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.
-
compareTo
- Specified by:
compareToin interfaceComparable<PsyTextual>- Specified by:
compareToin interfacePsyScalar<PsyTextual>
-
psyEq
-
psySplit
- Throws:
PsyLimitCheckException
-
psyIndexOfChar
-
psyIndexOfSubstring
-
iterator
- Specified by:
iteratorin interfaceIterable<PsyInteger>
-