Package com.oracle.truffle.api.strings
Class TruffleString.CreateBackwardCodePointIteratorNode
java.lang.Object
com.oracle.truffle.api.nodes.Node
com.oracle.truffle.api.strings.TruffleString.CreateBackwardCodePointIteratorNode
- All Implemented Interfaces:
NodeInterface
,Cloneable
- Enclosing class:
TruffleString
Node to create a
TruffleStringIterator
. See
execute(AbstractTruffleString, 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.CreateBackwardCodePointIteratorNode
.final TruffleStringIterator
execute
(AbstractTruffleString a, TruffleString.Encoding expectedEncoding) Returns aTruffleStringIterator
, which allows iterating this string's code points, withbest-effort error handling
.abstract TruffleStringIterator
execute
(AbstractTruffleString a, TruffleString.Encoding expectedEncoding, TruffleString.ErrorHandling errorHandling) Returns aTruffleStringIterator
, which allows iterating this string's code points.Get the uncached version ofTruffleString.CreateBackwardCodePointIteratorNode
.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, reportReplace, toString
-
Method Details
-
execute
public final TruffleStringIterator execute(AbstractTruffleString a, TruffleString.Encoding expectedEncoding) Returns aTruffleStringIterator
, which allows iterating this string's code points, withbest-effort error handling
.- Since:
- 22.1
-
execute
public abstract TruffleStringIterator execute(AbstractTruffleString a, TruffleString.Encoding expectedEncoding, TruffleString.ErrorHandling errorHandling) Returns aTruffleStringIterator
, which allows iterating this string's code points. The iterator is initialized to begin iteration at the end of the string, useTruffleStringIterator.PreviousNode
to iterate in reverse order.- Parameters:
errorHandling
- analogous toTruffleString.CodePointAtIndexNode
.- Since:
- 22.3
-
create
Create a newTruffleString.CreateBackwardCodePointIteratorNode
.- Since:
- 22.1
-
getUncached
Get the uncached version ofTruffleString.CreateBackwardCodePointIteratorNode
.- Since:
- 22.1
-