Class AbstractTruffleString
java.lang.Object
com.oracle.truffle.api.strings.AbstractTruffleString
- Direct Known Subclasses:
MutableTruffleString, TruffleString
public abstract sealed class AbstractTruffleString
extends Object
permits TruffleString, MutableTruffleString
Abstract base class for Truffle strings. Useful when a value can be both a
TruffleString
or a MutableTruffleString. Note that values of this type are not valid interop values.
They must be converted to TruffleString before passing them to other languages.- Since:
- 22.1
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionfinal MutableTruffleStringasManagedMutableTruffleStringUncached(TruffleString.Encoding expectedEncoding) Shorthand for calling the uncached version ofTruffleString.AsManagedNode.final TruffleStringasManagedTruffleStringUncached(TruffleString.Encoding expectedEncoding) Shorthand for calling the uncached version ofTruffleString.AsManagedNode.final TruffleStringasManagedTruffleStringUncached(TruffleString.Encoding expectedEncoding, boolean cacheResult) Shorthand for calling the uncached version ofTruffleString.AsManagedNode.final MutableTruffleStringasMutableTruffleStringUncached(TruffleString.Encoding expectedEncoding) Shorthand for calling the uncached version ofMutableTruffleString.AsMutableTruffleStringNode.final TruffleStringasTruffleStringUncached(TruffleString.Encoding expectedEncoding) Shorthand for calling the uncached version ofTruffleString.FromByteArrayNode.final intbyteIndexOfAnyByteUncached(int fromByteIndex, int maxByteIndex, byte[] values, TruffleString.Encoding expectedEncoding) Shorthand for calling the uncached version ofTruffleString.ByteIndexOfAnyByteNode.final intbyteIndexOfCodePointUncached(int cp, int fromIndex, int toIndex, TruffleString.Encoding expectedEncoding) Shorthand for calling the uncached version ofTruffleString.ByteIndexOfCodePointNode.final intbyteIndexOfStringUncached(AbstractTruffleString b, int fromIndex, int toIndex, TruffleString.Encoding expectedEncoding) Shorthand for calling the uncached version ofTruffleString.ByteIndexOfStringNode.final intbyteIndexOfStringUncached(TruffleString.WithMask b, int fromIndex, int toIndex, TruffleString.Encoding expectedEncoding) Shorthand for calling the uncached version ofTruffleString.ByteIndexOfStringNode.final intbyteIndexToCodePointIndexUncached(int byteOffset, int byteIndex, TruffleString.Encoding expectedEncoding) Shorthand for calling the uncached version ofTruffleString.ByteIndexToCodePointIndexNode.final intbyteLength(TruffleString.Encoding expectedEncoding) Get this string's length in bytes.final intbyteLengthOfCodePointUncached(int byteIndex, TruffleString.Encoding expectedEncoding) Shorthand for calling the uncached version ofTruffleString.CodePointIndexToByteIndexNode.final intbyteLengthOfCodePointUncached(int byteIndex, TruffleString.Encoding expectedEncoding, TruffleString.ErrorHandling errorHandling) Shorthand for calling the uncached version ofTruffleString.CodePointIndexToByteIndexNode.final intcharIndexOfAnyCharUTF16Uncached(int fromCharIndex, int maxCharIndex, char[] values) Shorthand for calling the uncached version ofTruffleString.CharIndexOfAnyCharUTF16Node.final intcodePointAtByteIndexUncached(int i, TruffleString.Encoding expectedEncoding) Shorthand for calling the uncached version ofTruffleString.CodePointAtByteIndexNode.final intcodePointAtByteIndexUncached(int i, TruffleString.Encoding expectedEncoding, TruffleString.ErrorHandling errorHandling) Shorthand for calling the uncached version ofTruffleString.CodePointAtByteIndexNode.final intcodePointAtIndexUncached(int i, TruffleString.Encoding expectedEncoding) Shorthand for calling the uncached version ofTruffleString.CodePointAtIndexNode.final intcodePointAtIndexUncached(int i, TruffleString.Encoding expectedEncoding, TruffleString.ErrorHandling errorHandling) Shorthand for calling the uncached version ofTruffleString.CodePointAtIndexNode.final intcodePointIndexToByteIndexUncached(int byteOffset, int codepointIndex, TruffleString.Encoding expectedEncoding) Shorthand for calling the uncached version ofTruffleString.CodePointIndexToByteIndexNode.final intcodePointLengthUncached(TruffleString.Encoding expectedEncoding) Shorthand for calling the uncached version ofTruffleString.CodePointLengthNode.final booleancodeRangeEqualsUncached(TruffleString.CodeRange otherCodeRange) Shorthand for calling the uncached version ofTruffleString.CodeRangeEqualsNode.final intcompareBytesUncached(AbstractTruffleString b, TruffleString.Encoding expectedEncoding) Shorthand for calling the uncached version ofTruffleString.CompareBytesNode.final intShorthand for calling the uncached version ofTruffleString.CompareCharsUTF16Node.final intShorthand for calling the uncached version ofTruffleString.CompareIntsUTF32Node.final TruffleStringconcatUncached(AbstractTruffleString b, TruffleString.Encoding expectedEncoding, boolean lazy) Shorthand for calling the uncached version ofTruffleString.ConcatNode.final voidcopyToByteArrayNodeUncached(int byteFromIndexA, byte[] dst, int byteFromIndexDst, int byteLength, TruffleString.Encoding expectedEncoding) Deprecated.final voidcopyToByteArrayUncached(int byteFromIndexA, byte[] dst, int byteFromIndexDst, int byteLength, TruffleString.Encoding expectedEncoding) Shorthand for calling the uncached version ofTruffleString.CopyToByteArrayNode.final byte[]copyToByteArrayUncached(TruffleString.Encoding expectedEncoding) Shorthand for calling the uncached version ofTruffleString.CopyToByteArrayNode.final voidcopyToNativeMemoryNodeUncached(int byteFromIndexA, Object pointerObject, int byteFromIndexDst, int byteLength, TruffleString.Encoding expectedEncoding) Deprecated.since 22.3, usecopyToNativeMemoryUncached(int, Object, int, int, Encoding)instead.final voidcopyToNativeMemoryUncached(int byteFromIndexA, Object pointerObject, int byteFromIndexDst, int byteLength, TruffleString.Encoding expectedEncoding) Shorthand for calling the uncached version ofTruffleString.CopyToNativeMemoryNode.final TruffleStringIteratorcreateBackwardCodePointIteratorUncached(TruffleString.Encoding expectedEncoding) Shorthand for calling the uncached version ofTruffleString.CreateBackwardCodePointIteratorNode.final TruffleStringIteratorcreateCodePointIteratorUncached(TruffleString.Encoding expectedEncoding) Shorthand for calling the uncached version ofTruffleString.CreateCodePointIteratorNode.final booleanReturnstrueif this string is equal toobj.final booleanequalsUncached(AbstractTruffleString b, TruffleString.Encoding expectedEncoding) Shorthand for calling the uncached version ofTruffleString.EqualNode.final TruffleStringforceEncodingUncached(TruffleString.Encoding expectedEncoding, TruffleString.Encoding targetEncoding) Shorthand for calling the uncached version ofTruffleString.ForceEncodingNode.final TruffleString.CodeRangegetByteCodeRangeUncached(TruffleString.Encoding expectedEncoding) Shorthand for calling the uncached version ofTruffleString.GetByteCodeRangeNode.final TruffleString.CodeRangegetCodeRangeImpreciseUncached(TruffleString.Encoding expectedEncoding) Shorthand for calling the uncached version ofTruffleString.GetCodeRangeImpreciseNode.final TruffleString.CodeRangegetCodeRangeUncached(TruffleString.Encoding expectedEncoding) Shorthand for calling the uncached version ofTruffleString.GetCodeRangeNode.final InternalByteArraygetInternalByteArrayUncached(TruffleString.Encoding expectedEncoding) Shorthand for calling the uncached version ofTruffleString.GetInternalByteArrayNode.final ObjectgetInternalNativePointerUncached(TruffleString.Encoding expectedEncoding) Shorthand for calling the uncached version ofTruffleString.GetInternalNativePointerNode.getStringCompactionLevelUncached(TruffleString.Encoding expectedEncoding) Shorthand for calling the uncached version ofTruffleString.GetStringCompactionLevelNode.final inthashCode()Returns this string's hashcode.final inthashCodeUncached(TruffleString.Encoding expectedEncoding) Shorthand for calling the uncached version ofTruffleString.HashCodeNode.final intindexOfCodePointUncached(int cp, int fromIndex, int toIndex, TruffleString.Encoding expectedEncoding) Shorthand for calling the uncached version ofTruffleString.IndexOfCodePointNode.final intindexOfStringUncached(AbstractTruffleString b, int fromIndex, int toIndex, TruffleString.Encoding expectedEncoding) Shorthand for calling the uncached version ofTruffleString.IndexOfStringNode.final intintIndexOfAnyIntUTF32Uncached(int fromIntIndex, int maxIntIndex, int[] values) Shorthand for calling the uncached version ofTruffleString.IntIndexOfAnyIntUTF32Node.final booleanisCompatibleTo(TruffleString.Encoding expectedEncoding) Deprecated.useisCompatibleToUncached(Encoding)instead.final booleanisCompatibleToUncached(TruffleString.Encoding expectedEncoding) Returnstrueif this string is compatible to the given encoding.final booleanisEmpty()Returnstrueif this string is empty.final booleanReturnstrueif this string is immutable, i.e.final booleanReturnstrueif this string is not backed by a native pointer.final booleanReturnstrueif this string is mutable, i.e.final booleanisNative()Returnstrueif this string is backed by a native pointer.final booleanisValidUncached(TruffleString.Encoding expectedEncoding) Shorthand for calling the uncached version ofTruffleString.IsValidNode.final intlastByteIndexOfCodePointUncached(int cp, int fromIndex, int toIndex, TruffleString.Encoding expectedEncoding) Shorthand for calling the uncached version ofTruffleString.LastByteIndexOfCodePointNode.final intlastByteIndexOfStringUncached(AbstractTruffleString b, int fromIndex, int toIndex, TruffleString.Encoding expectedEncoding) Shorthand for calling the uncached version ofTruffleString.LastByteIndexOfStringNode.final intlastByteIndexOfStringUncached(TruffleString.WithMask b, int fromIndex, int toIndex, TruffleString.Encoding expectedEncoding) Shorthand for calling the uncached version ofTruffleString.LastByteIndexOfStringNode.final intlastIndexOfCodePointUncached(int cp, int fromIndex, int toIndex, TruffleString.Encoding expectedEncoding) Shorthand for calling the uncached version ofTruffleString.LastIndexOfCodePointNode.final intlastIndexOfStringUncached(AbstractTruffleString b, int fromIndex, int toIndex, TruffleString.Encoding expectedEncoding) Shorthand for calling the uncached version ofTruffleString.LastIndexOfStringNode.materializeSubstringUncached(TruffleString.Encoding expectedEncoding) Shorthand for calling the uncached version ofTruffleString.MaterializeSubstringNode.voidmaterializeUncached(AbstractTruffleString a, TruffleString.Encoding expectedEncoding) Deprecated.since 25.1, usematerializeUncached(Encoding)instead.voidmaterializeUncached(TruffleString.Encoding expectedEncoding) Shorthand for calling the uncached version ofTruffleString.MaterializeNode.final doubleShorthand for calling the uncached version ofTruffleString.ParseDoubleNode.final intShorthand for calling the uncached version ofTruffleString.ParseIntNode.final intparseIntUncached(int radix) Shorthand for calling the uncached version ofTruffleString.ParseIntNode.final longShorthand for calling the uncached version ofTruffleString.ParseLongNode.final longparseLongUncached(int radix) Shorthand for calling the uncached version ofTruffleString.ParseLongNode.final intreadByteUncached(int i, TruffleString.Encoding expectedEncoding) Shorthand for calling the uncached version ofTruffleString.ReadByteNode.final intreadCharUTF16Uncached(int i) Shorthand for calling the uncached version ofTruffleString.ReadCharUTF16Node.final booleanregionEqualByteIndexUncached(int fromByteIndexA, AbstractTruffleString b, int fromByteIndexB, int byteLength, TruffleString.Encoding expectedEncoding) Shorthand for calling the uncached version ofTruffleString.RegionEqualByteIndexNode.final booleanregionEqualByteIndexUncached(int fromByteIndexA, TruffleString.WithMask b, int fromByteIndexB, int byteLength, TruffleString.Encoding expectedEncoding) Shorthand for calling the uncached version ofTruffleString.RegionEqualByteIndexNode.final booleanregionEqualsUncached(int fromIndexA, AbstractTruffleString b, int fromIndexB, int regionLength, TruffleString.Encoding expectedEncoding) Shorthand for calling the uncached version ofTruffleString.RegionEqualNode.final TruffleStringrepeatUncached(int n, TruffleString.Encoding expectedEncoding) Shorthand for calling the uncached version ofTruffleString.RepeatNode.final TruffleStringsubstringByteIndexUncached(int fromByteIndex, int byteLength, TruffleString.Encoding expectedEncoding, boolean lazy) Shorthand for calling the uncached version ofTruffleString.SubstringByteIndexNode.final TruffleStringsubstringUncached(int fromIndex, int substringLength, TruffleString.Encoding expectedEncoding, boolean lazy) Shorthand for calling the uncached version ofTruffleString.SubstringNode.final TruffleStringswitchEncodingUncached(TruffleString.Encoding targetEncoding) Shorthand for calling the uncached version ofTruffleString.SwitchEncodingNode.final TruffleStringswitchEncodingUncached(TruffleString.Encoding targetEncoding, TranscodingErrorHandler errorHandler) Shorthand for calling the uncached version ofTruffleString.SwitchEncodingNode.final StringShorthand for calling the uncached version ofTruffleString.ToJavaStringNode.final StringtoString()Returns aStringrepresentation of this string.final StringReturns debug information about this string.toValidStringUncached(TruffleString.Encoding expectedEncoding) Shorthand for calling the uncached version ofTruffleString.ToValidStringNode.
-
Method Details
-
isEmpty
public final boolean isEmpty()Returnstrueif this string is empty. This method is allowed to be used on fast paths.- Since:
- 22.1
-
byteLength
Get this string's length in bytes. This method is allowed to be used on fast paths.- Since:
- 22.1
-
isCompatibleTo
@Deprecated(since="23.0") public final boolean isCompatibleTo(TruffleString.Encoding expectedEncoding) Deprecated.useisCompatibleToUncached(Encoding)instead.Returnstrueif this string is compatible to the given encoding.- Since:
- 22.1
-
isCompatibleToUncached
Returnstrueif this string is compatible to the given encoding. Compatible forTruffleStringmeans it is byte-equivalent in both the encoding used to create this string and the given encoding. ForMutableTruffleStringthis method only returned true if the passed encoding is the same encoding used to create this string.- Since:
- 23.0
-
isManaged
public final boolean isManaged()Returnstrueif this string is not backed by a native pointer.- Since:
- 22.1
-
isNative
public final boolean isNative()Returnstrueif this string is backed by a native pointer.- Since:
- 22.1
-
isImmutable
public final boolean isImmutable()Returnstrueif this string is immutable, i.e. an instance ofTruffleString.- Since:
- 22.1
-
isMutable
public final boolean isMutable()Returnstrueif this string is mutable, i.e. an instance ofMutableTruffleString.- Since:
- 22.1
-
asTruffleStringUncached
Shorthand for calling the uncached version ofTruffleString.FromByteArrayNode.- Since:
- 22.1
-
asManagedTruffleStringUncached
Shorthand for calling the uncached version ofTruffleString.AsManagedNode.- Since:
- 22.1
-
asManagedTruffleStringUncached
public final TruffleString asManagedTruffleStringUncached(TruffleString.Encoding expectedEncoding, boolean cacheResult) Shorthand for calling the uncached version ofTruffleString.AsManagedNode.- Since:
- 23.0
-
asMutableTruffleStringUncached
public final MutableTruffleString asMutableTruffleStringUncached(TruffleString.Encoding expectedEncoding) Shorthand for calling the uncached version ofMutableTruffleString.AsMutableTruffleStringNode.- Since:
- 22.1
-
asManagedMutableTruffleStringUncached
public final MutableTruffleString asManagedMutableTruffleStringUncached(TruffleString.Encoding expectedEncoding) Shorthand for calling the uncached version ofTruffleString.AsManagedNode.- Since:
- 22.1
-
materializeUncached
@Deprecated(since="25.1") public void materializeUncached(AbstractTruffleString a, TruffleString.Encoding expectedEncoding) Deprecated.since 25.1, usematerializeUncached(Encoding)instead.Shorthand for calling the uncached version ofTruffleString.MaterializeNode.- Since:
- 23.1
-
materializeUncached
Shorthand for calling the uncached version ofTruffleString.MaterializeNode.- Since:
- 25.1
-
materializeSubstringUncached
Shorthand for calling the uncached version ofTruffleString.MaterializeSubstringNode.- Since:
- 25.1
-
getCodeRangeUncached
Shorthand for calling the uncached version ofTruffleString.GetCodeRangeNode.- Since:
- 22.1
-
getCodeRangeImpreciseUncached
public final TruffleString.CodeRange getCodeRangeImpreciseUncached(TruffleString.Encoding expectedEncoding) Shorthand for calling the uncached version ofTruffleString.GetCodeRangeImpreciseNode.- Since:
- 23.0
-
getByteCodeRangeUncached
public final TruffleString.CodeRange getByteCodeRangeUncached(TruffleString.Encoding expectedEncoding) Shorthand for calling the uncached version ofTruffleString.GetByteCodeRangeNode.- Since:
- 22.1
-
codeRangeEqualsUncached
Shorthand for calling the uncached version ofTruffleString.CodeRangeEqualsNode.- Since:
- 22.1
-
isValidUncached
Shorthand for calling the uncached version ofTruffleString.IsValidNode.- Since:
- 22.1
-
getStringCompactionLevelUncached
public final TruffleString.CompactionLevel getStringCompactionLevelUncached(TruffleString.Encoding expectedEncoding) Shorthand for calling the uncached version ofTruffleString.GetStringCompactionLevelNode.- Since:
- 23.0
-
codePointLengthUncached
Shorthand for calling the uncached version ofTruffleString.CodePointLengthNode.- Since:
- 22.1
-
hashCodeUncached
Shorthand for calling the uncached version ofTruffleString.HashCodeNode.- Since:
- 22.1
-
readByteUncached
Shorthand for calling the uncached version ofTruffleString.ReadByteNode.- Since:
- 22.1
-
readCharUTF16Uncached
public final int readCharUTF16Uncached(int i) Shorthand for calling the uncached version ofTruffleString.ReadCharUTF16Node.- Since:
- 22.1
-
byteLengthOfCodePointUncached
public final int byteLengthOfCodePointUncached(int byteIndex, TruffleString.Encoding expectedEncoding) Shorthand for calling the uncached version ofTruffleString.CodePointIndexToByteIndexNode.- Since:
- 22.1
-
byteLengthOfCodePointUncached
public final int byteLengthOfCodePointUncached(int byteIndex, TruffleString.Encoding expectedEncoding, TruffleString.ErrorHandling errorHandling) Shorthand for calling the uncached version ofTruffleString.CodePointIndexToByteIndexNode.- Since:
- 22.3
-
byteIndexToCodePointIndexUncached
public final int byteIndexToCodePointIndexUncached(int byteOffset, int byteIndex, TruffleString.Encoding expectedEncoding) Shorthand for calling the uncached version ofTruffleString.ByteIndexToCodePointIndexNode.- Since:
- 22.2
-
codePointIndexToByteIndexUncached
public final int codePointIndexToByteIndexUncached(int byteOffset, int codepointIndex, TruffleString.Encoding expectedEncoding) Shorthand for calling the uncached version ofTruffleString.CodePointIndexToByteIndexNode.- Since:
- 22.1
-
codePointAtIndexUncached
Shorthand for calling the uncached version ofTruffleString.CodePointAtIndexNode.- Since:
- 22.1
-
codePointAtIndexUncached
public final int codePointAtIndexUncached(int i, TruffleString.Encoding expectedEncoding, TruffleString.ErrorHandling errorHandling) Shorthand for calling the uncached version ofTruffleString.CodePointAtIndexNode.- Since:
- 22.3
-
codePointAtByteIndexUncached
Shorthand for calling the uncached version ofTruffleString.CodePointAtByteIndexNode.- Since:
- 22.1
-
codePointAtByteIndexUncached
public final int codePointAtByteIndexUncached(int i, TruffleString.Encoding expectedEncoding, TruffleString.ErrorHandling errorHandling) Shorthand for calling the uncached version ofTruffleString.CodePointAtByteIndexNode.- Since:
- 22.3
-
byteIndexOfAnyByteUncached
public final int byteIndexOfAnyByteUncached(int fromByteIndex, int maxByteIndex, byte[] values, TruffleString.Encoding expectedEncoding) Shorthand for calling the uncached version ofTruffleString.ByteIndexOfAnyByteNode.- Since:
- 22.1
-
charIndexOfAnyCharUTF16Uncached
public final int charIndexOfAnyCharUTF16Uncached(int fromCharIndex, int maxCharIndex, char[] values) Shorthand for calling the uncached version ofTruffleString.CharIndexOfAnyCharUTF16Node.- Since:
- 22.1
-
intIndexOfAnyIntUTF32Uncached
public final int intIndexOfAnyIntUTF32Uncached(int fromIntIndex, int maxIntIndex, int[] values) Shorthand for calling the uncached version ofTruffleString.IntIndexOfAnyIntUTF32Node.- Since:
- 22.1
-
indexOfCodePointUncached
public final int indexOfCodePointUncached(int cp, int fromIndex, int toIndex, TruffleString.Encoding expectedEncoding) Shorthand for calling the uncached version ofTruffleString.IndexOfCodePointNode.- Since:
- 22.1
-
byteIndexOfCodePointUncached
public final int byteIndexOfCodePointUncached(int cp, int fromIndex, int toIndex, TruffleString.Encoding expectedEncoding) Shorthand for calling the uncached version ofTruffleString.ByteIndexOfCodePointNode.- Since:
- 22.1
-
lastIndexOfCodePointUncached
public final int lastIndexOfCodePointUncached(int cp, int fromIndex, int toIndex, TruffleString.Encoding expectedEncoding) Shorthand for calling the uncached version ofTruffleString.LastIndexOfCodePointNode.- Since:
- 22.1
-
lastByteIndexOfCodePointUncached
public final int lastByteIndexOfCodePointUncached(int cp, int fromIndex, int toIndex, TruffleString.Encoding expectedEncoding) Shorthand for calling the uncached version ofTruffleString.LastByteIndexOfCodePointNode.- Since:
- 22.1
-
indexOfStringUncached
public final int indexOfStringUncached(AbstractTruffleString b, int fromIndex, int toIndex, TruffleString.Encoding expectedEncoding) Shorthand for calling the uncached version ofTruffleString.IndexOfStringNode.- Since:
- 22.1
-
byteIndexOfStringUncached
public final int byteIndexOfStringUncached(AbstractTruffleString b, int fromIndex, int toIndex, TruffleString.Encoding expectedEncoding) Shorthand for calling the uncached version ofTruffleString.ByteIndexOfStringNode.- Since:
- 22.1
-
byteIndexOfStringUncached
public final int byteIndexOfStringUncached(TruffleString.WithMask b, int fromIndex, int toIndex, TruffleString.Encoding expectedEncoding) Shorthand for calling the uncached version ofTruffleString.ByteIndexOfStringNode.- Since:
- 22.1
-
lastIndexOfStringUncached
public final int lastIndexOfStringUncached(AbstractTruffleString b, int fromIndex, int toIndex, TruffleString.Encoding expectedEncoding) Shorthand for calling the uncached version ofTruffleString.LastIndexOfStringNode.- Since:
- 22.1
-
lastByteIndexOfStringUncached
public final int lastByteIndexOfStringUncached(AbstractTruffleString b, int fromIndex, int toIndex, TruffleString.Encoding expectedEncoding) Shorthand for calling the uncached version ofTruffleString.LastByteIndexOfStringNode.- Since:
- 22.1
-
lastByteIndexOfStringUncached
public final int lastByteIndexOfStringUncached(TruffleString.WithMask b, int fromIndex, int toIndex, TruffleString.Encoding expectedEncoding) Shorthand for calling the uncached version ofTruffleString.LastByteIndexOfStringNode.- Since:
- 22.1
-
compareBytesUncached
public final int compareBytesUncached(AbstractTruffleString b, TruffleString.Encoding expectedEncoding) Shorthand for calling the uncached version ofTruffleString.CompareBytesNode.- Since:
- 22.1
-
compareCharsUTF16Uncached
Shorthand for calling the uncached version ofTruffleString.CompareCharsUTF16Node.- Since:
- 22.1
-
compareIntsUTF32Uncached
Shorthand for calling the uncached version ofTruffleString.CompareIntsUTF32Node.- Since:
- 22.1
-
regionEqualsUncached
public final boolean regionEqualsUncached(int fromIndexA, AbstractTruffleString b, int fromIndexB, int regionLength, TruffleString.Encoding expectedEncoding) Shorthand for calling the uncached version ofTruffleString.RegionEqualNode.- Since:
- 22.1
-
regionEqualByteIndexUncached
public final boolean regionEqualByteIndexUncached(int fromByteIndexA, AbstractTruffleString b, int fromByteIndexB, int byteLength, TruffleString.Encoding expectedEncoding) Shorthand for calling the uncached version ofTruffleString.RegionEqualByteIndexNode.- Since:
- 22.1
-
regionEqualByteIndexUncached
public final boolean regionEqualByteIndexUncached(int fromByteIndexA, TruffleString.WithMask b, int fromByteIndexB, int byteLength, TruffleString.Encoding expectedEncoding) Shorthand for calling the uncached version ofTruffleString.RegionEqualByteIndexNode.- Since:
- 22.1
-
concatUncached
public final TruffleString concatUncached(AbstractTruffleString b, TruffleString.Encoding expectedEncoding, boolean lazy) Shorthand for calling the uncached version ofTruffleString.ConcatNode.- Since:
- 22.1
-
repeatUncached
Shorthand for calling the uncached version ofTruffleString.RepeatNode.- Since:
- 22.1
-
substringUncached
public final TruffleString substringUncached(int fromIndex, int substringLength, TruffleString.Encoding expectedEncoding, boolean lazy) Shorthand for calling the uncached version ofTruffleString.SubstringNode.- Since:
- 22.1
-
substringByteIndexUncached
public final TruffleString substringByteIndexUncached(int fromByteIndex, int byteLength, TruffleString.Encoding expectedEncoding, boolean lazy) Shorthand for calling the uncached version ofTruffleString.SubstringByteIndexNode.- Since:
- 22.1
-
equalsUncached
public final boolean equalsUncached(AbstractTruffleString b, TruffleString.Encoding expectedEncoding) Shorthand for calling the uncached version ofTruffleString.EqualNode.- Since:
- 22.1
-
parseIntUncached
Shorthand for calling the uncached version ofTruffleString.ParseIntNode.- Throws:
TruffleString.NumberFormatException- Since:
- 22.1
-
parseIntUncached
Shorthand for calling the uncached version ofTruffleString.ParseIntNode.- Throws:
TruffleString.NumberFormatException- Since:
- 22.1
-
parseLongUncached
Shorthand for calling the uncached version ofTruffleString.ParseLongNode.- Throws:
TruffleString.NumberFormatException- Since:
- 22.1
-
parseLongUncached
Shorthand for calling the uncached version ofTruffleString.ParseLongNode.- Throws:
TruffleString.NumberFormatException- Since:
- 22.1
-
parseDoubleUncached
Shorthand for calling the uncached version ofTruffleString.ParseDoubleNode.- Throws:
TruffleString.NumberFormatException- Since:
- 22.1
-
getInternalByteArrayUncached
public final InternalByteArray getInternalByteArrayUncached(TruffleString.Encoding expectedEncoding) Shorthand for calling the uncached version ofTruffleString.GetInternalByteArrayNode.- Since:
- 22.1
-
getInternalNativePointerUncached
Shorthand for calling the uncached version ofTruffleString.GetInternalNativePointerNode.- Since:
- 22.1
-
copyToByteArrayUncached
Shorthand for calling the uncached version ofTruffleString.CopyToByteArrayNode.- Since:
- 22.3
-
copyToByteArrayNodeUncached
@Deprecated(since="22.3") public final void copyToByteArrayNodeUncached(int byteFromIndexA, byte[] dst, int byteFromIndexDst, int byteLength, TruffleString.Encoding expectedEncoding) Deprecated.since 22.3, usecopyToByteArrayUncached(int, byte[], int, int, Encoding)instead.Shorthand for calling the uncached version ofTruffleString.CopyToByteArrayNode.- Since:
- 22.1
-
copyToByteArrayUncached
public final void copyToByteArrayUncached(int byteFromIndexA, byte[] dst, int byteFromIndexDst, int byteLength, TruffleString.Encoding expectedEncoding) Shorthand for calling the uncached version ofTruffleString.CopyToByteArrayNode.- Since:
- 22.1
-
copyToNativeMemoryNodeUncached
@Deprecated(since="22.3") public final void copyToNativeMemoryNodeUncached(int byteFromIndexA, Object pointerObject, int byteFromIndexDst, int byteLength, TruffleString.Encoding expectedEncoding) Deprecated.since 22.3, usecopyToNativeMemoryUncached(int, Object, int, int, Encoding)instead.Shorthand for calling the uncached version ofTruffleString.CopyToNativeMemoryNode.- Since:
- 22.1
-
copyToNativeMemoryUncached
public final void copyToNativeMemoryUncached(int byteFromIndexA, Object pointerObject, int byteFromIndexDst, int byteLength, TruffleString.Encoding expectedEncoding) Shorthand for calling the uncached version ofTruffleString.CopyToNativeMemoryNode.- Since:
- 22.1
-
toValidStringUncached
Shorthand for calling the uncached version ofTruffleString.ToValidStringNode.- Since:
- 23.1
-
toJavaStringUncached
Shorthand for calling the uncached version ofTruffleString.ToJavaStringNode.- Since:
- 22.1
-
switchEncodingUncached
Shorthand for calling the uncached version ofTruffleString.SwitchEncodingNode.- Since:
- 22.1
-
switchEncodingUncached
public final TruffleString switchEncodingUncached(TruffleString.Encoding targetEncoding, TranscodingErrorHandler errorHandler) Shorthand for calling the uncached version ofTruffleString.SwitchEncodingNode.- Since:
- 23.1
-
forceEncodingUncached
public final TruffleString forceEncodingUncached(TruffleString.Encoding expectedEncoding, TruffleString.Encoding targetEncoding) Shorthand for calling the uncached version ofTruffleString.ForceEncodingNode.- Since:
- 22.1
-
createCodePointIteratorUncached
public final TruffleStringIterator createCodePointIteratorUncached(TruffleString.Encoding expectedEncoding) Shorthand for calling the uncached version ofTruffleString.CreateCodePointIteratorNode.- Since:
- 22.1
-
createBackwardCodePointIteratorUncached
public final TruffleStringIterator createBackwardCodePointIteratorUncached(TruffleString.Encoding expectedEncoding) Shorthand for calling the uncached version ofTruffleString.CreateBackwardCodePointIteratorNode.- Since:
- 22.1
-
equals
Returnstrueif this string is equal toobj.TruffleStringdoes not attempt to automatically convert differently encoded strings during comparison, make sure to convert both strings to a common encoding before comparing them! -
hashCode
-
toString
-
toStringDebug
Returns debug information about this string. For debugging purposes only. The format of the information returned by this method is unspecified and may change at any time.- Since:
- 22.1
-
copyToByteArrayUncached(int, byte[], int, int, Encoding)instead.