Class TruffleString.RepeatNode
java.lang.Object
com.oracle.truffle.api.nodes.Node
com.oracle.truffle.api.strings.TruffleString.RepeatNode
- All Implemented Interfaces:
NodeInterface, Cloneable
- Enclosing class:
TruffleString
Node to repeat a given string
N
times. See
execute(AbstractTruffleString, int, TruffleString.Encoding)
for details.- Since:
- 22.1
-
Nested Class Summary
Nested classes/interfaces inherited from class Node
Node.Child, Node.Children
-
Method Summary
Modifier and TypeMethodDescriptionstatic TruffleString.RepeatNode
create()
Create a newTruffleString.RepeatNode
.abstract TruffleString
execute
(AbstractTruffleString a, int n, TruffleString.Encoding expectedEncoding) Create a new string by repeatingn
times stringa
.static TruffleString.RepeatNode
Get the uncached version ofTruffleString.RepeatNode
.Methods inherited from class 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
public abstract TruffleString execute(AbstractTruffleString a, int n, TruffleString.Encoding expectedEncoding) Create a new string by repeatingn
times stringa
.- Since:
- 22.1
-
create
-
getUncached
Get the uncached version ofTruffleString.RepeatNode
.- Since:
- 22.1
-