Class TruffleString.CodePointAtIndexUTF32Node
java.lang.Object
com.oracle.truffle.api.nodes.Node
com.oracle.truffle.api.strings.TruffleString.CodePointAtIndexUTF32Node
- All Implemented Interfaces:
NodeInterface, Cloneable
- Enclosing class:
TruffleString
Node to read a codepoint at a given codepoint index from a UTF-32 string. See
execute(AbstractTruffleString, int) for details.- Since:
- 25.1
-
Nested Class Summary
Nested classes/interfaces inherited from class Node
Node.Child, Node.Children -
Method Summary
Modifier and TypeMethodDescriptioncreate()Create a newTruffleString.CodePointAtIndexUTF32Node.abstract intexecute(AbstractTruffleString a, int i) Decode and return the codepoint at codepoint indexi.Get the uncached version ofTruffleString.CodePointAtIndexUTF32Node.Methods inherited from class 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
Decode and return the codepoint at codepoint indexi. This node is a specialized version ofTruffleString.CodePointAtIndexNodefor UTF-32 strings, withbest-efforterror handling. This node should be preferred over the genericTruffleString.CodePointAtIndexNodewhen possible for better performance during warmup / in interpreter mode.- Since:
- 25.1
-
create
Create a newTruffleString.CodePointAtIndexUTF32Node.- Since:
- 25.1
-
getUncached
Get the uncached version ofTruffleString.CodePointAtIndexUTF32Node.- Since:
- 25.1
-