Package com.oracle.truffle.api.strings
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 com.oracle.truffle.api.nodes.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 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 execute(AbstractTruffleString a, int n, TruffleString.Encoding expectedEncoding) Create a new string by repeatingn
times stringa
.- Since:
- 22.1
-
create
Create a newTruffleString.RepeatNode
.- Since:
- 22.1
-
getUncached
Get the uncached version ofTruffleString.RepeatNode
.- Since:
- 22.1
-