Package com.oracle.truffle.api.strings
Class TruffleString.LastIndexOfCodePointNode
java.lang.Object
com.oracle.truffle.api.nodes.Node
com.oracle.truffle.api.strings.TruffleString.LastIndexOfCodePointNode
- All Implemented Interfaces:
NodeInterface
,Cloneable
- Enclosing class:
TruffleString
Node to find the codepoint index of the last occurrence of a given code point. See
execute(AbstractTruffleString, int, int, int, TruffleString.Encoding)
for details.- Since:
- 22.1
-
Nested Class Summary
Nested classes/interfaces inherited from class com.oracle.truffle.api.nodes.Node
Node.Child, Node.Children
-
Method Summary
Modifier and TypeMethodDescriptioncreate()
Create a newTruffleString.LastIndexOfCodePointNode
.abstract int
execute
(AbstractTruffleString a, int codepoint, int fromIndex, int toIndex, TruffleString.Encoding expectedEncoding) Return the codepoint index of the last occurrence ofcodepoint
, bounded byfromIndex
(exclusive upper limit) andtoIndex
(inclusive lower limit), if no occurrence is found return a negative value.Get the uncached version ofTruffleString.LastIndexOfCodePointNode
.Methods inherited from class com.oracle.truffle.api.nodes.Node
accept, adoptChildren, atomic, atomic, copy, deepCopy, getChildren, getCost, getDebugProperties, getDescription, getEncapsulatingSourceSection, getLock, getParent, getRootNode, getSourceSection, insert, insert, isAdoptable, isSafelyReplaceableBy, notifyInserted, onReplace, replace, replace, reportPolymorphicSpecialize, toString
-
Method Details
-
execute
public abstract int execute(AbstractTruffleString a, int codepoint, int fromIndex, int toIndex, TruffleString.Encoding expectedEncoding) Return the codepoint index of the last occurrence ofcodepoint
, bounded byfromIndex
(exclusive upper limit) andtoIndex
(inclusive lower limit), if no occurrence is found return a negative value.- Since:
- 22.1
-
create
Create a newTruffleString.LastIndexOfCodePointNode
.- Since:
- 22.1
-
getUncached
Get the uncached version ofTruffleString.LastIndexOfCodePointNode
.- Since:
- 22.1
-