public abstract class JSConstantNode extends JavaScriptNode implements RepeatableNode
| Modifier and Type | Class and Description |
|---|---|
static class |
JSConstantNode.JSConstantBigIntNode |
static class |
JSConstantNode.JSConstantBooleanNode |
static class |
JSConstantNode.JSConstantDoubleNode |
static class |
JSConstantNode.JSConstantIntegerNode |
static class |
JSConstantNode.JSConstantNullNode |
static class |
JSConstantNode.JSConstantNumericUnitNode |
static class |
JSConstantNode.JSConstantSafeIntegerNode |
static class |
JSConstantNode.JSConstantStringNode |
static class |
JSConstantNode.JSConstantUndefinedNode |
INTERMEDIATE_VALUE| Constructor and Description |
|---|
JSConstantNode() |
| Modifier and Type | Method and Description |
|---|---|
protected JavaScriptNode |
copyUninitialized(Set<Class<? extends com.oracle.truffle.api.instrumentation.Tag>> materializedTags) |
static JSConstantNode |
create(Object value) |
static JSConstantNode |
createBigInt(BigInt value) |
static JSConstantNode |
createBoolean(boolean value) |
static JSConstantNode |
createConstantNumericUnit() |
static JSConstantNode |
createDouble(double value) |
static JSConstantNode |
createInt(int value) |
static JSConstantNode |
createNull() |
static JSConstantNode |
createSafeInteger(SafeInteger value) |
static JSConstantNode |
createString(com.oracle.truffle.api.strings.TruffleString value) |
static JSConstantNode |
createUndefined() |
void |
executeVoid(com.oracle.truffle.api.frame.VirtualFrame frame)
Like
JavaScriptNode.execute(VirtualFrame) except that it throws away the result. |
String |
expressionToString() |
Map<String,Object> |
getDebugProperties() |
Object |
getNodeObject() |
abstract Object |
getValue() |
boolean |
hasTag(Class<? extends com.oracle.truffle.api.instrumentation.Tag> tag) |
addCallTag, addExpressionTag, addRootBodyTag, addStatementTag, cloneUninitialized, cloneUninitialized, copy, createWrapper, execute, executeBoolean, executeDouble, executeInt, executeLong, findBlockScopeNode, getSourceSection, hasSourceSection, isInstrumentable, isResultAlwaysOfType, onReplace, removeSourceSection, setSourceSection, setSourceSection, toString, transferSourceSection, transferSourceSectionAddExpressionTag, transferSourceSectionAndTagsgetLanguage, getRealm, hasOverloadedOperatorsaccept, adoptChildren, atomic, atomic, deepCopy, getChildren, getCost, getDescription, getEncapsulatingSourceSection, getLock, getParent, getRootNode, insert, insert, isAdoptable, isSafelyReplaceableBy, notifyInserted, replace, replace, reportPolymorphicSpecializepublic static JSConstantNode create(Object value)
public boolean hasTag(Class<? extends com.oracle.truffle.api.instrumentation.Tag> tag)
hasTag in interface com.oracle.truffle.api.instrumentation.InstrumentableNodehasTag in class JavaScriptNodepublic Object getNodeObject()
getNodeObject in interface com.oracle.truffle.api.instrumentation.InstrumentableNodepublic static JSConstantNode createUndefined()
public static JSConstantNode createNull()
public static JSConstantNode createInt(int value)
public static JSConstantNode createSafeInteger(SafeInteger value)
public static JSConstantNode createBigInt(BigInt value)
public static JSConstantNode createDouble(double value)
public static JSConstantNode createConstantNumericUnit()
public static JSConstantNode createBoolean(boolean value)
public static JSConstantNode createString(com.oracle.truffle.api.strings.TruffleString value)
public abstract Object getValue()
public final void executeVoid(com.oracle.truffle.api.frame.VirtualFrame frame)
JavaScriptNodeJavaScriptNode.execute(VirtualFrame) except that it throws away the result. A node can
override this method if it has a better way to execute without producing a value.executeVoid in class JavaScriptNodeframe - the frame of the currently executing guest language methodprotected JavaScriptNode copyUninitialized(Set<Class<? extends com.oracle.truffle.api.instrumentation.Tag>> materializedTags)
copyUninitialized in class JavaScriptNodepublic Map<String,Object> getDebugProperties()
getDebugProperties in class com.oracle.truffle.api.nodes.Nodepublic String expressionToString()
expressionToString in class JavaScriptNode