public abstract class JSToBooleanNode extends JavaScriptBaseNode
JSToBooleanUnaryNode| Modifier | Constructor and Description |
|---|---|
protected |
JSToBooleanNode() |
| Modifier and Type | Method and Description |
|---|---|
static JSToBooleanNode |
create() |
protected static boolean |
doBigInt(BigInt value) |
protected static boolean |
doBoolean(boolean value) |
protected static boolean |
doDouble(double value) |
protected boolean |
doForeignObject(Object value,
com.oracle.truffle.api.interop.InteropLibrary interop) |
protected static boolean |
doInt(int value) |
protected static boolean |
doJSObject(JSObject value) |
protected static boolean |
doLong(long value) |
protected static boolean |
doNull(Object value) |
protected static boolean |
doString(com.oracle.truffle.api.strings.TruffleString value) |
protected static boolean |
doSymbol(Symbol value) |
protected static boolean |
doUndefined(Object value) |
abstract boolean |
executeBoolean(com.oracle.truffle.api.nodes.Node node,
Object value) |
boolean |
executeBoolean(Object value) |
static JSToBooleanNode |
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 final boolean executeBoolean(Object value)
public abstract boolean executeBoolean(com.oracle.truffle.api.nodes.Node node,
Object value)
public static JSToBooleanNode create()
public static JSToBooleanNode getUncached()
protected static boolean doBoolean(boolean value)
protected static boolean doNull(Object value)
protected static boolean doUndefined(Object value)
protected static boolean doInt(int value)
protected static boolean doLong(long value)
protected static boolean doDouble(double value)
protected static boolean doBigInt(BigInt value)
protected static boolean doString(com.oracle.truffle.api.strings.TruffleString value)
protected static boolean doJSObject(JSObject value)
protected static boolean doSymbol(Symbol value)
protected final boolean doForeignObject(Object value, com.oracle.truffle.api.interop.InteropLibrary interop)