Class TruffleString.ConcatNode
java.lang.Object
com.oracle.truffle.api.nodes.Node
com.oracle.truffle.api.strings.TruffleString.ConcatNode
- All Implemented Interfaces:
NodeInterface,Cloneable
- Enclosing class:
TruffleString
Node to concatenate two strings. See
execute(AbstractTruffleString, AbstractTruffleString, TruffleString.Encoding, boolean)
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.ConcatNodecreate()Create a newTruffleString.ConcatNode.abstract TruffleStringexecute(AbstractTruffleString a, AbstractTruffleString b, TruffleString.Encoding expectedEncoding, boolean lazy) Create a new string by concatenatingaandb.static TruffleString.ConcatNodeGet the uncached version ofTruffleString.ConcatNode.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
public abstract TruffleString execute(AbstractTruffleString a, AbstractTruffleString b, TruffleString.Encoding expectedEncoding, boolean lazy) Create a new string by concatenatingaandb.- Parameters:
lazy- iftrue, the creation of the new string's internal array may be delayed until it is required by another operation. This parameter is expected to bepartial evaluation constant.- Since:
- 22.1
-
create
-
getUncached
Get the uncached version ofTruffleString.ConcatNode.- Since:
- 22.1
-