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 voidexecute(TruffleStringBuilder sb, int codepoint) Append a codepoint to the string builder.final voidexecute(TruffleStringBuilder sb, int codepoint, int repeat) Append a codepoint to the string builder,repeattimes.abstract voidexecute(TruffleStringBuilder sb, int codepoint, int repeat, boolean allowUTF16Surrogates) Append a codepoint to the string builder,repeattimes.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,repeattimes.- Since:
- 22.2
-
execute
public abstract void execute(TruffleStringBuilder sb, int codepoint, int repeat, boolean allowUTF16Surrogates) Append a codepoint to the string builder,repeattimes. IfallowUTF16Surrogatesistrue,UTF-16 surrogate valuespassed ascodepointwill not cause anIllegalArgumentException, but instead be encoded on a best-effort basis. This option is only supported onTruffleString.Encoding.UTF_16andTruffleString.Encoding.UTF_32.- Since:
- 22.2
-
create
Create a newTruffleStringBuilder.AppendCodePointNode.- Since:
- 22.1
-
getUncached
Get the uncached version ofTruffleStringBuilder.AppendCodePointNode.- Since:
- 22.1
-