Package ai.timefold.jpyinterpreter.types
Class PythonString
java.lang.Object
ai.timefold.jpyinterpreter.types.AbstractPythonLikeObject
ai.timefold.jpyinterpreter.types.PythonString
- All Implemented Interfaces:
PythonLikeObject,PythonLikeComparable<PythonString>,PlanningImmutable,Comparable<PythonString>
public class PythonString
extends AbstractPythonLikeObject
implements PythonLikeComparable<PythonString>, PlanningImmutable
-
Field Summary
FieldsFields inherited from class ai.timefold.jpyinterpreter.types.AbstractPythonLikeObject
OBJECT_TYPE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription$method$__format__(PythonLikeObject specObject) final PythonByteArrayfinal PythonBytesasString()casefold()center(PythonInteger width) center(PythonInteger width, PythonString fillChar) intcompareTo(PythonString pythonString) concat(PythonString other) containsSubstring(PythonString substring) count(PythonString sub) count(PythonString sub, PythonInteger start) count(PythonString sub, PythonInteger start, PythonInteger end) encode()encode(PythonString charset) encode(PythonString charset, PythonString errorActionString) endsWith(PythonLikeTuple<PythonString> suffixTuple) endsWith(PythonLikeTuple<PythonString> suffixTuple, PythonInteger start) endsWith(PythonLikeTuple<PythonString> suffixTuple, PythonInteger start, PythonInteger end) endsWith(PythonString suffix) endsWith(PythonString suffix, PythonInteger start) endsWith(PythonString suffix, PythonInteger start, PythonInteger end) booleanexpandTabs(PythonInteger tabsize) findSubstringIndex(PythonString substring) findSubstringIndex(PythonString substring, PythonInteger start) findSubstringIndex(PythonString substring, PythonInteger start, PythonInteger end) findSubstringIndexOrError(PythonString substring) findSubstringIndexOrError(PythonString substring, PythonInteger start) findSubstringIndexOrError(PythonString substring, PythonInteger start, PythonInteger end) format(List<PythonLikeObject> positionalArguments, Map<PythonString, PythonLikeObject> namedArguments) formatMap(PythonLikeDict dict) formatSelf(PythonString spec) getCharAt(PythonInteger position) getSubstring(PythonSlice slice) getValue()inthashCode()interpolate(PythonLikeObject object) interpolate(PythonLikeDict dict) interpolate(PythonLikeTuple tuple) isAlpha()isAscii()isDigit()isLower()isSpace()isTitle()isUpper()join(PythonLikeObject iterable) leftJustify(PythonInteger width) leftJustify(PythonInteger width, PythonString fillChar) leftStrip(PythonNone ignored) leftStrip(PythonString toStrip) intlength()lower()partition(PythonString seperator) removePrefix(PythonString prefix) removeSuffix(PythonString suffix) repeat(PythonInteger times) replaceAll(PythonString old, PythonString replacement) replaceUpToCount(PythonString old, PythonString replacement, PythonInteger count) repr()rightFindSubstringIndex(PythonString substring) rightFindSubstringIndex(PythonString substring, PythonInteger start) rightFindSubstringIndex(PythonString substring, PythonInteger start, PythonInteger end) rightFindSubstringIndexOrError(PythonString substring) rightFindSubstringIndexOrError(PythonString substring, PythonInteger start) rightFindSubstringIndexOrError(PythonString substring, PythonInteger start, PythonInteger end) rightJustify(PythonInteger width) rightJustify(PythonInteger width, PythonString fillChar) rightPartition(PythonString seperator) rightSplit(PythonNone ignored) rightSplit(PythonNone ignored, PythonInteger maxSplits) rightSplit(PythonString seperator) rightSplit(PythonString seperator, PythonInteger maxSplits) rightStrip(PythonNone ignored) rightStrip(PythonString toStrip) split()split(PythonNone ignored) split(PythonNone ignored, PythonInteger maxSplits) split(PythonString seperator) split(PythonString seperator, PythonInteger maxSplits) splitLines(PythonBoolean keepEnds) startsWith(PythonLikeTuple<PythonString> prefixTuple) startsWith(PythonLikeTuple<PythonString> prefixTuple, PythonInteger start) startsWith(PythonLikeTuple<PythonString> prefixTuple, PythonInteger start, PythonInteger end) startsWith(PythonString prefix) startsWith(PythonString prefix, PythonInteger start) startsWith(PythonString prefix, PythonInteger start, PythonInteger end) strip()strip(PythonNone ignored) strip(PythonString toStrip) swapCase()title()title(IntPredicate predicate) toString()translate(PythonLikeObject object) upper()static PythonStringwithModifiedCodepoints(IntUnaryOperator modifier) zfill(PythonInteger width) Methods inherited from class ai.timefold.jpyinterpreter.types.AbstractPythonLikeObject
$deleteAttribute, $getAttributeOrNull, $getType, $setAttribute, getExtraAttributeMap, setAttributeMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface ai.timefold.jpyinterpreter.types.PythonLikeComparable
greaterThan, greaterThanOrEqual, lessThan, lessThanOrEqualMethods inherited from interface ai.timefold.jpyinterpreter.PythonLikeObject
$getAttributeOrError, $getGenericType, $method$__delattr__, $method$__eq__, $method$__format__, $method$__getattribute__, $method$__ne__, $method$__repr__, $method$__setattr__
-
Field Details
-
value
-
EMPTY
-
-
Constructor Details
-
PythonString
-
-
Method Details
-
valueOf
-
getValue
-
asAsciiBytes
-
asAsciiByteArray
-
encode
-
encode
-
encode
-
length
public int length() -
getLength
-
getCharAt
-
getSubstring
-
containsSubstring
-
concat
-
repeat
-
getIterator
-
capitalize
-
title
-
title
-
casefold
-
swapCase
-
lower
-
upper
-
withModifiedCodepoints
-
center
-
center
-
rightJustify
-
rightJustify
-
leftJustify
-
leftJustify
-
count
-
count
-
count
-
startsWith
-
startsWith
-
startsWith
-
startsWith
-
startsWith
-
startsWith
public PythonBoolean startsWith(PythonLikeTuple<PythonString> prefixTuple, PythonInteger start, PythonInteger end) -
endsWith
-
endsWith
-
endsWith
-
endsWith
-
endsWith
-
endsWith
public PythonBoolean endsWith(PythonLikeTuple<PythonString> suffixTuple, PythonInteger start, PythonInteger end) -
expandTabs
-
expandTabs
-
findSubstringIndex
-
findSubstringIndex
-
findSubstringIndex
public PythonInteger findSubstringIndex(PythonString substring, PythonInteger start, PythonInteger end) -
rightFindSubstringIndex
-
rightFindSubstringIndex
-
rightFindSubstringIndex
public PythonInteger rightFindSubstringIndex(PythonString substring, PythonInteger start, PythonInteger end) -
format
public PythonString format(List<PythonLikeObject> positionalArguments, Map<PythonString, PythonLikeObject> namedArguments) -
formatMap
-
formatSelf
-
formatSelf
-
interpolate
-
interpolate
-
interpolate
-
findSubstringIndexOrError
-
findSubstringIndexOrError
-
findSubstringIndexOrError
public PythonInteger findSubstringIndexOrError(PythonString substring, PythonInteger start, PythonInteger end) -
rightFindSubstringIndexOrError
-
rightFindSubstringIndexOrError
-
rightFindSubstringIndexOrError
public PythonInteger rightFindSubstringIndexOrError(PythonString substring, PythonInteger start, PythonInteger end) -
isAlphaNumeric
-
isAlpha
-
isAscii
-
isDecimal
-
isDigit
-
isIdentifier
-
isLower
-
isNumeric
-
isPrintable
-
isSpace
-
isUpper
-
isTitle
-
join
-
strip
-
strip
-
strip
-
leftStrip
-
leftStrip
-
leftStrip
-
rightStrip
-
rightStrip
-
rightStrip
-
partition
-
rightPartition
-
removePrefix
-
removeSuffix
-
replaceAll
-
replaceUpToCount
public PythonString replaceUpToCount(PythonString old, PythonString replacement, PythonInteger count) -
split
-
split
-
split
-
split
-
split
-
rightSplit
-
rightSplit
-
rightSplit
-
rightSplit
-
rightSplit
-
splitLines
-
splitLines
-
translate
-
zfill
-
compareTo
- Specified by:
compareToin interfaceComparable<PythonString>
-
$method$__format__
- Specified by:
$method$__format__in interfacePythonLikeObject
-
repr
-
asString
-
$method$__str__
- Specified by:
$method$__str__in interfacePythonLikeObject
-
toString
- Overrides:
toStringin classAbstractPythonLikeObject
-
equals
-
hashCode
public int hashCode() -
$method$__hash__
- Specified by:
$method$__hash__in interfacePythonLikeObject
-