Package com.oracle.truffle.api.strings
Class TruffleString.MaterializeNode
java.lang.Object
com.oracle.truffle.api.nodes.Node
com.oracle.truffle.api.strings.TruffleString.MaterializeNode
- All Implemented Interfaces:
NodeInterface
,Cloneable
- Enclosing class:
TruffleString
Node to force materialization of any lazy internal data. Use this node to avoid
materialization code inside loops, e.g. when iterating over a string's code points or bytes.
- 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.MaterializeNode
.abstract void
execute
(AbstractTruffleString a, TruffleString.Encoding expectedEncoding) Forces materialization of any lazy internal data.Get the uncached version ofTruffleString.MaterializeNode
.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, reportReplace, toString
-
Method Details
-
execute
Forces materialization of any lazy internal data. Use this node to avoid materialization code inside loops, e.g. when iterating over a string's code points or bytes.- Since:
- 22.1
-
create
Create a newTruffleString.MaterializeNode
.- Since:
- 22.1
-
getUncached
Get the uncached version ofTruffleString.MaterializeNode
.- Since:
- 22.1
-