Class TruffleStringBuilder.AppendCodePointNode
java.lang.Object
com.oracle.truffle.api.nodes.Node
com.oracle.truffle.api.strings.TruffleStringBuilder.AppendCodePointNode
- All Implemented Interfaces:
NodeInterface, Cloneable
- Enclosing class:
TruffleStringBuilder
Node to append a codepoint to a string builder.
- Since:
- 22.1
-
Nested Class Summary
Nested classes/interfaces inherited from class Node
Node.Child, Node.Children
-
Method Summary
Modifier and TypeMethodDescriptioncreate()
Create a newTruffleStringBuilder.AppendCodePointNode
.final void
execute
(TruffleStringBuilder sb, int codepoint) Append a codepoint to the string builder.final 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.Get the uncached version ofTruffleStringBuilder.AppendCodePointNode
.Methods inherited from class Node
accept, adoptChildren, atomic, atomic, copy, deepCopy, getChildren, getCost, getDebugProperties, getDescription, getEncapsulatingSourceSection, getLock, getParent, getRootNode, getSourceSection, insert, insert, isAdoptable, isSafelyReplaceableBy, notifyInserted, onReplace, replace, replace, reportPolymorphicSpecialize, reportReplace, toString
-
Method Details
-
execute
Append a codepoint to the string builder.- Since:
- 22.1
-
execute
Append a codepoint to the string builder,repeat
times.- Since:
- 22.2
-
execute
public abstract void execute(TruffleStringBuilder sb, int codepoint, int repeat, boolean allowUTF16Surrogates) Append a codepoint to the string builder,repeat
times. IfallowUTF16Surrogates
istrue
,UTF-16 surrogate values
passed ascodepoint
will not cause anIllegalArgumentException
, but instead be encoded on a best-effort basis. This option is only supported onTruffleString.Encoding.UTF_16
andTruffleString.Encoding.UTF_32
.- Since:
- 22.2
-
create
Create a newTruffleStringBuilder.AppendCodePointNode
.- Since:
- 22.1
-
getUncached
Get the uncached version ofTruffleStringBuilder.AppendCodePointNode
.- Since:
- 22.1
-