Elide GraalVM25.6.0-elide.4
All types
Versions and modules

TruffleString.FromCodePointNode

Javaabstract classin com.oracle.truffle.api.stringssince 22.1

public abstract static class TruffleString.FromCodePointNode extends AbstractPublicNode
Inheritance
  1. Object
  2. Node
  3. AbstractPublicNode
  4. FromCodePointNode
Enclosing type
TruffleString

Node to create a new TruffleString from a single codepoint.

Members shown

Methods4 + 26 inherited

TruffleString execute(int, TruffleString.Encoding)

execute

since 22.1
public final TruffleString execute(int codepoint, TruffleString.Encoding encoding)

Creates a new TruffleString from a given code point.

Parameters

codepointint
No description.
encodingTruffleString.Encoding
No description.

Returns

TruffleString
No description.
TruffleString execute(int, TruffleString.Encoding, boolean)

execute

abstractsince 22.2
public abstract TruffleString execute(
    int codepoint,
    TruffleString.Encoding encoding,
    boolean allowUTF16Surrogates
)

Creates a new TruffleString from a given code point.

If 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.

Parameters

codepointint
No description.
encodingTruffleString.Encoding
No description.
allowUTF16Surrogatesboolean
No description.

Returns

TruffleString
a new TruffleString, or null if the given codepoint is not defined in the given encoding.
static TruffleString.FromCodePointNode create()

create

staticsince 22.1
public static TruffleString.FromCodePointNode create()

Create a new FromCodePointNode.

Returns

static TruffleString.FromCodePointNode getUncached()

getUncached

staticsince 22.1
public static TruffleString.FromCodePointNode getUncached()

Get the uncached version of FromCodePointNode.

Returns

Inherited members