public abstract static class TruffleString.ForceEncodingNode extends Node
TruffleString.ForceEncodingNode.execute(AbstractTruffleString, TruffleString.Encoding, TruffleString.Encoding)
for
details.Node.Child, Node.Children
Modifier and Type | Method and Description |
---|---|
static TruffleString.ForceEncodingNode |
create()
Create a new
TruffleString.ForceEncodingNode . |
abstract TruffleString |
execute(AbstractTruffleString a,
TruffleString.Encoding expectedEncoding,
TruffleString.Encoding targetEncoding)
Returns a version of string
a assigned to the given encoding, which may be the
string itself or a new string. |
static TruffleString.ForceEncodingNode |
getUncached()
Get the uncached version of
TruffleString.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 TruffleString execute(AbstractTruffleString a, TruffleString.Encoding expectedEncoding, TruffleString.Encoding targetEncoding)
a
assigned to the given encoding, which may be the
string itself or a new string. The string itself may be returned even if it was
originally created using a different encoding, if the string is byte-equivalent in both
encodings. If the string is not byte-equivalent in both encodings, a new string
containing the same 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 TruffleString.ForceEncodingNode create()
TruffleString.ForceEncodingNode
.public static TruffleString.ForceEncodingNode getUncached()
TruffleString.ForceEncodingNode
.