public abstract static class TruffleString.FromCodePointNode extends Node
TruffleString from a single codepoint.Node.Child, Node.Children| Modifier and Type | Method and Description |
|---|---|
static TruffleString.FromCodePointNode |
create()
Create a new
TruffleString.FromCodePointNode. |
TruffleString |
execute(int codepoint,
TruffleString.Encoding encoding)
Creates a new TruffleString from a given code point.
|
abstract TruffleString |
execute(int codepoint,
TruffleString.Encoding encoding,
boolean allowUTF16Surrogates)
Creates a new TruffleString from a given code point.
|
static TruffleString.FromCodePointNode |
getUncached()
Get the uncached version of
TruffleString.FromCodePointNode. |
accept, adoptChildren, atomic, atomic, copy, deepCopy, getChildren, getCost, getDebugProperties, getDescription, getEncapsulatingSourceSection, getLock, getParent, getRootNode, getSourceSection, insert, insert, isAdoptable, isSafelyReplaceableBy, notifyInserted, onReplace, replace, replace, reportPolymorphicSpecialize, toStringpublic final TruffleString execute(int codepoint, TruffleString.Encoding encoding)
public abstract TruffleString execute(int codepoint, TruffleString.Encoding encoding, boolean allowUTF16Surrogates)
allowUTF16Surrogates is true, UTF-16 surrogate values passed as codepoint will not result in a null
return value, but instead be encoded on a best-effort basis. This option is only
supported on TruffleString.Encoding.UTF_16 and
TruffleString.Encoding.UTF_32.TruffleString, or null if the given codepoint is not
defined in the given encoding.public static TruffleString.FromCodePointNode create()
TruffleString.FromCodePointNode.public static TruffleString.FromCodePointNode getUncached()
TruffleString.FromCodePointNode.