Package com.oracle.truffle.api.strings
Class TruffleString.CreateCodePointIteratorNode
java.lang.Object
com.oracle.truffle.api.nodes.Node
com.oracle.truffle.api.strings.TruffleString.CreateCodePointIteratorNode
- 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.CreateCodePointIteratorNode
.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.CreateCodePointIteratorNode
.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 start of the string, useTruffleStringIterator.NextNode
to iterate.- Parameters:
errorHandling
- analogous toTruffleString.CodePointAtIndexNode
.- Since:
- 22.3
-
create
Create a newTruffleString.CreateCodePointIteratorNode
.- Since:
- 22.1
-
getUncached
Get the uncached version ofTruffleString.CreateCodePointIteratorNode
.- Since:
- 22.1
-