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