public abstract class JSToNumberNode extends JavaScriptBaseNode
| Modifier and Type | Class and Description |
|---|---|
static class |
JSToNumberNode.JSToNumberUnaryNode |
| Constructor and Description |
|---|
JSToNumberNode() |
| Modifier and Type | Method and Description |
|---|---|
static JSToNumberNode |
create() |
static JavaScriptNode |
create(JavaScriptNode child) |
protected Number |
doBigInt(BigInt value) |
protected static int |
doBoolean(boolean value) |
protected static double |
doDouble(double value) |
protected static Number |
doForeignBigInt(BigInt value) |
protected static int |
doInteger(int value) |
protected Number |
doJSObject(JSObject value,
JSToPrimitiveNode toPrimitiveNode,
JSToNumberNode toNumberNode) |
protected Number |
doJSOrForeignObject(Object value,
JSToPrimitiveNode toPrimitiveNode,
JSToNumberNode toNumberNode) |
protected static double |
doLong(long value) |
protected static int |
doNull(Object value) |
protected Number |
doString(com.oracle.truffle.api.strings.TruffleString value,
JSStringToNumberNode stringToNumberNode) |
protected Number |
doSymbol(Symbol value) |
protected static double |
doUndefined(Object value) |
abstract Object |
execute(Object value) |
Number |
executeNumber(Object value) |
copy, getLanguage, getRealm, hasOverloadedOperators, onReplaceaccept, adoptChildren, atomic, atomic, deepCopy, getChildren, getCost, getDebugProperties, getDescription, getEncapsulatingSourceSection, getLock, getParent, getRootNode, getSourceSection, insert, insert, isAdoptable, isSafelyReplaceableBy, notifyInserted, replace, replace, reportPolymorphicSpecialize, toStringpublic static JSToNumberNode create()
public static JavaScriptNode create(JavaScriptNode child)
protected static int doInteger(int value)
protected static int doBoolean(boolean value)
protected static double doDouble(double value)
protected static int doNull(Object value)
protected static double doUndefined(Object value)
protected Number doString(com.oracle.truffle.api.strings.TruffleString value, JSStringToNumberNode stringToNumberNode)
protected Number doJSObject(JSObject value, JSToPrimitiveNode toPrimitiveNode, JSToNumberNode toNumberNode)
protected static double doLong(long value)
protected Number doJSOrForeignObject(Object value, JSToPrimitiveNode toPrimitiveNode, JSToNumberNode toNumberNode)