public abstract class JSToStringNode extends JavaScriptBaseNode
Modifier and Type | Class and Description |
---|---|
static class |
JSToStringNode.JSToStringWrapperNode |
Modifier and Type | Field and Description |
---|---|
protected static int |
MAX_CLASSES |
Modifier | Constructor and Description |
---|---|
protected |
JSToStringNode(boolean undefinedToEmpty,
boolean symbolToString) |
Modifier and Type | Method and Description |
---|---|
static JSToStringNode |
create() |
static JSToStringNode |
createSymbolToString()
Creates a ToString node that returns the SymbolDescriptiveString for a symbol.
|
static JSToStringNode |
createUndefinedToEmpty()
Creates a node that returns the empty string for
undefined . |
protected String |
doBigInt(BigInt value) |
protected String |
doBoolean(boolean value) |
protected String |
doDouble(double d,
JSDoubleToStringNode doubleToStringNode) |
protected String |
doInteger(int value) |
protected String |
doJSObject(com.oracle.truffle.api.object.DynamicObject value,
JSToPrimitiveNode toPrimitiveHintStringNode) |
protected String |
doLazyString(JSLazyString value,
com.oracle.truffle.api.profiles.ConditionProfile flattenProfile) |
protected String |
doLong(long value) |
protected String |
doNull(Object value) |
protected String |
doString(String value) |
protected String |
doSymbol(Symbol value) |
protected String |
doTruffleObject(Object object,
JSToPrimitiveNode toPrimitiveNode) |
protected String |
doUndefined(Object value) |
abstract String |
executeString(Object operand) |
protected JSToStringNode |
getToStringNode() |
copy, onReplace
accept, adoptChildren, atomic, atomic, deepCopy, getChildren, getCost, getDebugProperties, getDescription, getEncapsulatingSourceSection, getLock, getParent, getRootNode, getSourceSection, insert, insert, isAdoptable, isSafelyReplaceableBy, lookupContextReference, lookupLanguageReference, notifyInserted, replace, replace, reportPolymorphicSpecialize, toString
protected static final int MAX_CLASSES
protected JSToStringNode(boolean undefinedToEmpty, boolean symbolToString)
public static JSToStringNode create()
public static JSToStringNode createUndefinedToEmpty()
undefined
.public static JSToStringNode createSymbolToString()
protected String doLazyString(JSLazyString value, com.oracle.truffle.api.profiles.ConditionProfile flattenProfile)
protected String doBoolean(boolean value)
protected String doInteger(int value)
protected String doLong(long value)
protected String doDouble(double d, JSDoubleToStringNode doubleToStringNode)
protected String doJSObject(com.oracle.truffle.api.object.DynamicObject value, JSToPrimitiveNode toPrimitiveHintStringNode)
protected String doTruffleObject(Object object, JSToPrimitiveNode toPrimitiveNode)
protected JSToStringNode getToStringNode()