Package com.oracle.truffle.api.strings
Class TruffleString.CodePointAtByteIndexNode
java.lang.Object
com.oracle.truffle.api.nodes.Node
com.oracle.truffle.api.strings.TruffleString.CodePointAtByteIndexNode
- All Implemented Interfaces:
NodeInterface
,Cloneable
- Enclosing class:
TruffleString
Node to read a codepoint at a given byte index. See
execute(AbstractTruffleString, 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.CodePointAtByteIndexNode
.final int
execute
(AbstractTruffleString a, int i, TruffleString.Encoding expectedEncoding) Decode and return the codepoint at byte indexi
, withbest-effort
error handling.abstract int
execute
(AbstractTruffleString a, int i, TruffleString.Encoding expectedEncoding, TruffleString.ErrorHandling errorHandling) Decode and return the codepoint at byte indexi
.Get the uncached version ofTruffleString.CodePointAtByteIndexNode
.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
Decode and return the codepoint at byte indexi
, withbest-effort
error handling.- Since:
- 22.1
-
execute
public abstract int execute(AbstractTruffleString a, int i, TruffleString.Encoding expectedEncoding, TruffleString.ErrorHandling errorHandling) Decode and return the codepoint at byte indexi
.- Parameters:
errorHandling
- analogous toTruffleString.CodePointAtIndexNode
.- Since:
- 22.3
-
create
Create a newTruffleString.CodePointAtByteIndexNode
.- Since:
- 22.1
-
getUncached
Get the uncached version ofTruffleString.CodePointAtByteIndexNode
.- Since:
- 22.1
-