Package com.oracle.truffle.api.strings
Class MutableTruffleString.SubstringNode
java.lang.Object
com.oracle.truffle.api.nodes.Node
com.oracle.truffle.api.strings.MutableTruffleString.SubstringNode
- All Implemented Interfaces:
NodeInterface
,Cloneable
- Enclosing class:
MutableTruffleString
Node to create a new mutable substring of a string. See
execute(AbstractTruffleString, int, 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 TypeMethodDescriptioncreate()
Create a newMutableTruffleString.SubstringNode
.abstract MutableTruffleString
execute
(AbstractTruffleString a, int fromIndex, int length, TruffleString.Encoding expectedEncoding) Create a new mutable substring ofa
, starting fromfromIndex
, with lengthlength
.Get the uncached version ofMutableTruffleString.SubstringNode
.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 MutableTruffleString execute(AbstractTruffleString a, int fromIndex, int length, TruffleString.Encoding expectedEncoding) Create a new mutable substring ofa
, starting fromfromIndex
, with lengthlength
. The substring is performed eagerly since return value is mutable.- Since:
- 22.1
-
create
Create a newMutableTruffleString.SubstringNode
.- Since:
- 22.1
-
getUncached
Get the uncached version ofMutableTruffleString.SubstringNode
.- Since:
- 22.1
-