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.RepeatNodecreate()Create a newTruffleString.RepeatNode.abstract TruffleStringexecute(AbstractTruffleString a, int n, TruffleString.Encoding expectedEncoding) Create a new string by repeatingntimes stringa.static TruffleString.RepeatNodeGet 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 repeatingntimes stringa.- Since:
- 22.1
-
create
-
getUncached
Get the uncached version ofTruffleString.RepeatNode.- Since:
- 22.1
-