Package com.oracle.truffle.api.strings
Class TruffleString.ReadByteNode
java.lang.Object
com.oracle.truffle.api.nodes.Node
com.oracle.truffle.api.strings.TruffleString.ReadByteNode
- All Implemented Interfaces:
NodeInterface
,Cloneable
- Enclosing class:
TruffleString
Node to read a single byte from a string. 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 TypeMethodDescriptionstatic TruffleString.ReadByteNode
create()
Create a newTruffleString.ReadByteNode
.abstract int
execute
(AbstractTruffleString a, int byteIndex, TruffleString.Encoding expectedEncoding) Read a single byte from a string.static TruffleString.ReadByteNode
Get the uncached version ofTruffleString.ReadByteNode
.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 byteIndex, TruffleString.Encoding expectedEncoding) Read a single byte from a string. If used inside a loop or repetitively,TruffleString.MaterializeNode
should be used before.- Since:
- 22.1
-
create
Create a newTruffleString.ReadByteNode
.- Since:
- 22.1
-
getUncached
Get the uncached version ofTruffleString.ReadByteNode
.- Since:
- 22.1
-