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 Number |
doForeignObject(Object value,
JSToPrimitiveNode toPrimitiveNode) |
protected static int |
doInteger(int value) |
protected static double |
doJavaObject(Object value) |
protected Number |
doJSObject(com.oracle.truffle.api.object.DynamicObject value,
JSToPrimitiveNode toPrimitiveNode) |
protected static int |
doNull(Object value) |
protected Number |
doString(String value) |
protected Number |
doSymbol(Symbol value) |
protected static double |
doUndefined(Object value) |
abstract Object |
execute(Object value) |
Number |
executeNumber(Object value) |
copy, onReplaceaccept, adoptChildren, atomic, atomic, deepCopy, getChildren, getCost, getDebugProperties, getDescription, getEncapsulatingSourceSection, getLock, getParent, getRootNode, getSourceSection, insert, insert, isAdoptable, isSafelyReplaceableBy, lookupContextReference, lookupLanguageReference, 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 doJSObject(com.oracle.truffle.api.object.DynamicObject value, JSToPrimitiveNode toPrimitiveNode)
protected Number doForeignObject(Object value, JSToPrimitiveNode toPrimitiveNode)
protected static double doJavaObject(Object value)