Class TruffleString.FromLongNode
java.lang.Object
com.oracle.truffle.api.nodes.Node
com.oracle.truffle.api.strings.TruffleString.FromLongNode
- All Implemented Interfaces:
NodeInterface, Cloneable
- Enclosing class:
TruffleString
Node to create a new
TruffleString from a long value. See
execute(long, TruffleString.Encoding, boolean) for details.- Since:
- 22.1
-
Nested Class Summary
Nested classes/interfaces inherited from class Node
Node.Child, Node.Children -
Method Summary
Modifier and TypeMethodDescriptionstatic TruffleString.FromLongNodecreate()Create a newTruffleString.FromLongNode.abstract TruffleStringexecute(long value, TruffleString.Encoding encoding, boolean lazy) Creates a 10's complement string from the given long value, using ASCII digits (0x30 - 0x39).static TruffleString.FromLongNodeGet the uncached version ofTruffleString.FromLongNode.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
Creates a 10's complement string from the given long value, using ASCII digits (0x30 - 0x39). This operation does not support encodings that are incompatible with the ASCII character set.- Parameters:
lazy- if true, the string representation of the number is computed lazily the first time it is needed. This parameter is expected to bepartial evaluation constant.- Since:
- 22.1
-
create
Create a newTruffleString.FromLongNode.- Since:
- 22.1
-
getUncached
Get the uncached version ofTruffleString.FromLongNode.- Since:
- 22.1
-