Package com.oracle.truffle.api.strings
Class TruffleString.WithMask.CreateNode
java.lang.Object
com.oracle.truffle.api.nodes.Node
com.oracle.truffle.api.strings.TruffleString.WithMask.CreateNode
- All Implemented Interfaces:
NodeInterface
,Cloneable
- Enclosing class:
TruffleString.WithMask
Node to create a new
TruffleString.WithMask
from a string and a byte array. See
#execute(AbstractTruffleString, byte[], 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.WithMask.CreateNode
.abstract TruffleString.WithMask
execute
(AbstractTruffleString a, byte[] mask, TruffleString.Encoding expectedEncoding) Get the uncached version ofTruffleString.WithMask.CreateNode
.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 TruffleString.WithMask execute(AbstractTruffleString a, byte[] mask, TruffleString.Encoding expectedEncoding) Creates a newTruffleString.WithMask
froma
andmask
.mask.length
must be equal to the string's length in bytes. Cannot be used for UTF-16 or UTF-32 strings.- Since:
- 22.1
-
create
Create a newTruffleString.WithMask.CreateNode
.- Since:
- 22.1
-
getUncached
Get the uncached version ofTruffleString.WithMask.CreateNode
.- Since:
- 22.1
-