public abstract static class MutableTruffleString.ForceEncodingNode extends Node
MutableTruffleString.ForceEncodingNode.execute(AbstractTruffleString, TruffleString.Encoding, TruffleString.Encoding)
for
details.Node.Child, Node.Children
Modifier and Type | Method and Description |
---|---|
static MutableTruffleString.ForceEncodingNode |
create()
Create a new
MutableTruffleString.ForceEncodingNode . |
abstract MutableTruffleString |
execute(AbstractTruffleString a,
TruffleString.Encoding expectedEncoding,
TruffleString.Encoding targetEncoding)
Returns a version of string
a assigned to the given encoding. |
static MutableTruffleString.ForceEncodingNode |
getUncached()
Get the uncached version of
MutableTruffleString.ForceEncodingNode . |
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
public abstract MutableTruffleString execute(AbstractTruffleString a, TruffleString.Encoding expectedEncoding, TruffleString.Encoding targetEncoding)
a
assigned to the given encoding. If the string is
already in the given encoding, it is returned. Otherwise, a new string containing the
same (copied) bytes but assigned to the new encoding is returned. This node does not
transcode the string's contents in any way, it is the "encoding-equivalent" to a C-style
reinterpret-cast.public static MutableTruffleString.ForceEncodingNode create()
MutableTruffleString.ForceEncodingNode
.public static MutableTruffleString.ForceEncodingNode getUncached()
MutableTruffleString.ForceEncodingNode
.