public abstract static class TruffleString.IndexOfStringNode extends Node
TruffleString.IndexOfStringNode.execute(AbstractTruffleString, AbstractTruffleString, int, int, TruffleString.Encoding)
for details.Node.Child, Node.Children| Modifier and Type | Method and Description |
|---|---|
static TruffleString.IndexOfStringNode |
create()
Create a new
TruffleString.IndexOfStringNode. |
abstract int |
execute(AbstractTruffleString a,
AbstractTruffleString b,
int fromIndex,
int toIndex,
TruffleString.Encoding expectedEncoding)
Return the codepoint index of the first occurrence of
string, bounded by
fromIndex (inclusive) and toIndex (exclusive), if no occurrence is found
return a negative value. |
static TruffleString.IndexOfStringNode |
getUncached()
Get the uncached version of
TruffleString.IndexOfStringNode. |
accept, adoptChildren, atomic, atomic, copy, deepCopy, getChildren, getCost, getDebugProperties, getDescription, getEncapsulatingSourceSection, getLock, getParent, getRootNode, getSourceSection, insert, insert, isAdoptable, isSafelyReplaceableBy, notifyInserted, onReplace, replace, replace, reportPolymorphicSpecialize, toStringpublic abstract int execute(AbstractTruffleString a, AbstractTruffleString b, int fromIndex, int toIndex, TruffleString.Encoding expectedEncoding)
string, bounded by
fromIndex (inclusive) and toIndex (exclusive), if no occurrence is found
return a negative value.public static TruffleString.IndexOfStringNode create()
TruffleString.IndexOfStringNode.public static TruffleString.IndexOfStringNode getUncached()
TruffleString.IndexOfStringNode.