public abstract class JSToObjectNode extends JavaScriptBaseNode
| Modifier and Type | Class and Description |
|---|---|
static class |
JSToObjectNode.JSToObjectWrapperNode |
| Modifier | Constructor and Description |
|---|---|
protected |
JSToObjectNode() |
| Modifier and Type | Method and Description |
|---|---|
static JSToObjectNode |
create() |
protected JSDynamicObject |
doBigInt(BigInt value) |
protected JSDynamicObject |
doBoolean(boolean value) |
protected JSDynamicObject |
doDouble(double value) |
protected Object |
doForeignObject(Object value,
com.oracle.truffle.api.interop.InteropLibrary interop) |
protected JSDynamicObject |
doInt(int value) |
protected Object |
doJSObject(JSObject object) |
protected static Object |
doJSObjectCached(Object object,
Class<?> cachedClass) |
protected JSDynamicObject |
doNullOrUndefined(Object object) |
protected JSDynamicObject |
doString(com.oracle.truffle.api.strings.TruffleString value) |
protected JSDynamicObject |
doSymbol(Symbol value) |
abstract Object |
execute(Object value) |
protected JSContext |
getContext() |
static JSToObjectNode |
getUncached() |
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 JSToObjectNode create()
public static JSToObjectNode getUncached()
protected final JSContext getContext()
protected JSDynamicObject doBoolean(boolean value)
protected JSDynamicObject doString(com.oracle.truffle.api.strings.TruffleString value)
protected JSDynamicObject doInt(int value)
protected JSDynamicObject doDouble(double value)
protected JSDynamicObject doBigInt(BigInt value)
protected JSDynamicObject doSymbol(Symbol value)
protected JSDynamicObject doNullOrUndefined(Object object)