Package com.oracle.truffle.api.strings
Class TruffleString.ParseLongNode
java.lang.Object
com.oracle.truffle.api.nodes.Node
com.oracle.truffle.api.strings.TruffleString.ParseLongNode
- All Implemented Interfaces:
NodeInterface
,Cloneable
- Enclosing class:
TruffleString
Node to parse a given string as a long value.
- Since:
- 22.1
-
Nested Class Summary
Nested classes/interfaces inherited from class com.oracle.truffle.api.nodes.Node
Node.Child, Node.Children
-
Method Summary
Modifier and TypeMethodDescriptionstatic TruffleString.ParseLongNode
create()
Create a newTruffleString.ParseLongNode
.abstract long
execute
(AbstractTruffleString a, int radix) Parse the given string as a long value, or throwTruffleString.NumberFormatException
.static TruffleString.ParseLongNode
Get the uncached version ofTruffleString.ParseLongNode
.Methods inherited from class com.oracle.truffle.api.nodes.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
public abstract long execute(AbstractTruffleString a, int radix) throws TruffleString.NumberFormatException Parse the given string as a long value, or throwTruffleString.NumberFormatException
.- Throws:
TruffleString.NumberFormatException
- Since:
- 22.1
-
create
Create a newTruffleString.ParseLongNode
.- Since:
- 22.1
-
getUncached
Get the uncached version ofTruffleString.ParseLongNode
.- Since:
- 22.1
-