Package com.oracle.truffle.api.strings
Class TruffleString.AsTruffleStringNode
java.lang.Object
com.oracle.truffle.api.nodes.Node
com.oracle.truffle.api.strings.TruffleString.AsTruffleStringNode
- All Implemented Interfaces:
NodeInterface
,Cloneable
- Enclosing class:
TruffleString
Node to get the given
AbstractTruffleString
as a TruffleString
. See
execute(AbstractTruffleString, 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 newTruffleString.AsTruffleStringNode
.abstract TruffleString
execute
(AbstractTruffleString value, TruffleString.Encoding expectedEncoding) If the given string is already aTruffleString
, return it.Get the uncached version ofTruffleString.AsTruffleStringNode
.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 value, TruffleString.Encoding expectedEncoding) If the given string is already aTruffleString
, return it. If it is aMutableTruffleString
, create a newTruffleString
, copying the mutable string's contents.- Since:
- 22.1
-
create
Create a newTruffleString.AsTruffleStringNode
.- Since:
- 22.1
-
getUncached
Get the uncached version ofTruffleString.AsTruffleStringNode
.- Since:
- 22.1
-