Class DeclareEvalVariableNode

All Implemented Interfaces:
com.oracle.truffle.api.instrumentation.InstrumentableNode, com.oracle.truffle.api.nodes.NodeInterface, Cloneable

public class DeclareEvalVariableNode extends StatementNode
  • Constructor Details

    • DeclareEvalVariableNode

      public DeclareEvalVariableNode(JSContext context, com.oracle.truffle.api.strings.TruffleString varName, JavaScriptNode dynamicScopeNode, WriteNode writeDynamicScopeNode)
  • Method Details

    • execute

      public Object execute(com.oracle.truffle.api.frame.VirtualFrame frame)
      Description copied from class: JavaScriptNode
      Executes this node using the specified context and frame and returns the result value.
      Specified by:
      execute in class JavaScriptNode
      Parameters:
      frame - the frame of the currently executing guest language method
      Returns:
      the value of the execution
    • getName

      public Object getName()
    • copyUninitialized

      protected JavaScriptNode copyUninitialized(Set<Class<? extends com.oracle.truffle.api.instrumentation.Tag>> materializedTags)
      Overrides:
      copyUninitialized in class JavaScriptNode