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() |
addCallTag, addExpressionTag, addRootBodyTag, addStatementTag, cloneUninitialized, cloneUninitialized, copy, createWrapper, execute, executeBoolean, executeDouble, executeInt, executeLong, executeSafeInteger, executeString, findBlockScopeNode, getSourceSection, hasSourceSection, isInstrumentable, isResultAlwaysOfType, onReplace, removeSourceSection, setSourceSection, setSourceSection, toString, transferSourceSection, transferSourceSectionAddExpressionTag, transferSourceSectionAndTagsaccept, adoptChildren, atomic, atomic, deepCopy, getChildren, getCost, getDescription, getEncapsulatingSourceSection, getLock, getParent, getRootNode, insert, insert, isAdoptable, isSafelyReplaceableBy, lookupContextReference, lookupLanguageReference, 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(String 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