Package com.oracle.truffle.api.strings
Class TruffleString.ByteIndexOfAnyByteNode
java.lang.Object
com.oracle.truffle.api.nodes.Node
com.oracle.truffle.api.strings.TruffleString.ByteIndexOfAnyByteNode
- All Implemented Interfaces:
NodeInterface
,Cloneable
- Enclosing class:
TruffleString
Node to find the index of the first occurrence of any byte from a given array. See
execute(AbstractTruffleString, int, int, byte[], 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.ByteIndexOfAnyByteNode
.abstract int
execute
(AbstractTruffleString a, int fromByteIndex, int maxByteIndex, byte[] values, TruffleString.Encoding expectedEncoding) Return the byte index of the first occurrence of any byte contained invalues
, bounded byfromByteIndex
(inclusive) andmaxByteIndex
(exclusive).Get the uncached version ofTruffleString.ByteIndexOfAnyByteNode
.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 fromByteIndex, int maxByteIndex, byte[] values, TruffleString.Encoding expectedEncoding) Return the byte index of the first occurrence of any byte contained invalues
, bounded byfromByteIndex
(inclusive) andmaxByteIndex
(exclusive).If none of the values is found, return a negative value.
- Since:
- 22.1
-
create
Create a newTruffleString.ByteIndexOfAnyByteNode
.- Since:
- 22.1
-
getUncached
Get the uncached version ofTruffleString.ByteIndexOfAnyByteNode
.- Since:
- 22.1
-