public abstract static class TruffleStringBuilder.AppendCodePointNode extends Node
Node.Child, Node.Children
Modifier and Type | Method and Description |
---|---|
static TruffleStringBuilder.AppendCodePointNode |
create()
Create a new
TruffleStringBuilder.AppendCodePointNode . |
void |
execute(TruffleStringBuilder sb,
int codepoint)
Append a codepoint to the string builder.
|
void |
execute(TruffleStringBuilder sb,
int codepoint,
int repeat)
Append a codepoint to the string builder,
repeat times. |
abstract void |
execute(TruffleStringBuilder sb,
int codepoint,
int repeat,
boolean allowUTF16Surrogates)
Append a codepoint to the string builder,
repeat times. |
static TruffleStringBuilder.AppendCodePointNode |
getUncached()
Get the uncached version of
TruffleStringBuilder.AppendCodePointNode . |
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 final void execute(TruffleStringBuilder sb, int codepoint)
public final void execute(TruffleStringBuilder sb, int codepoint, int repeat)
repeat
times.public abstract void execute(TruffleStringBuilder sb, int codepoint, int repeat, boolean allowUTF16Surrogates)
repeat
times.
If allowUTF16Surrogates
is true
, UTF-16 surrogate values
passed as codepoint
will not cause an
IllegalArgumentException
, but instead be encoded on a best-effort basis. This
option is only supported on TruffleString.Encoding.UTF_16
and TruffleString.Encoding.UTF_32
.public static TruffleStringBuilder.AppendCodePointNode create()
TruffleStringBuilder.AppendCodePointNode
.public static TruffleStringBuilder.AppendCodePointNode getUncached()
TruffleStringBuilder.AppendCodePointNode
.