Package com.oracle.truffle.api.strings
Class TruffleString.ParseIntNode
java.lang.Object
com.oracle.truffle.api.nodes.Node
com.oracle.truffle.api.strings.TruffleString.ParseIntNode
- All Implemented Interfaces:
NodeInterface
,Cloneable
- Enclosing class:
TruffleString
Node to parse a given string as an int 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.ParseIntNode
create()
Create a newTruffleString.ParseIntNode
.abstract int
execute
(AbstractTruffleString a, int radix) Parse the given string as an int value, or throwTruffleString.NumberFormatException
.static TruffleString.ParseIntNode
Get the uncached version ofTruffleString.ParseIntNode
.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 int execute(AbstractTruffleString a, int radix) throws TruffleString.NumberFormatException Parse the given string as an int value, or throwTruffleString.NumberFormatException
.- Throws:
TruffleString.NumberFormatException
- Since:
- 22.1
-
create
Create a newTruffleString.ParseIntNode
.- Since:
- 22.1
-
getUncached
Get the uncached version ofTruffleString.ParseIntNode
.- Since:
- 22.1
-