public abstract static class TruffleString.GetInternalNativePointerNode extends Node
native
string's pointer object. See
TruffleString.GetInternalNativePointerNode.execute(AbstractTruffleString, TruffleString.Encoding)
for details.Node.Child, Node.Children
Modifier and Type | Method and Description |
---|---|
static TruffleString.GetInternalNativePointerNode |
create()
Create a new
TruffleString.GetInternalNativePointerNode . |
abstract Object |
execute(AbstractTruffleString a,
TruffleString.Encoding expectedEncoding)
Get the given string's pointer object which was passed to
TruffleString.FromNativePointerNode . |
static TruffleString.GetInternalNativePointerNode |
getUncached()
Get the uncached version of
TruffleString.GetInternalNativePointerNode . |
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 Object execute(AbstractTruffleString a, TruffleString.Encoding expectedEncoding)
TruffleString.FromNativePointerNode
.
If the string is not backed by a native pointer, this node will throw an
UnsupportedOperationException
. Use AbstractTruffleString.isNative()
to
check whether the string is actually backed by a native pointer before calling this node.
Caution: If the given string is a TruffleString
, the native pointer must not be
modified as long as the string is used.public static TruffleString.GetInternalNativePointerNode create()
TruffleString.GetInternalNativePointerNode
.public static TruffleString.GetInternalNativePointerNode getUncached()
TruffleString.GetInternalNativePointerNode
.