Class SLDefineFunctionBuiltin

java.lang.Object
com.oracle.truffle.api.nodes.Node
com.oracle.truffle.sl.builtins.SLBuiltinNode
com.oracle.truffle.sl.builtins.SLDefineFunctionBuiltin
All Implemented Interfaces:
com.oracle.truffle.api.nodes.NodeInterface, Cloneable

public abstract class SLDefineFunctionBuiltin extends SLBuiltinNode
Builtin function to define (or redefine) functions. The provided source code is parsed the same way as the initial source of the script, so the same syntax applies.
  • Nested Class Summary

    Nested classes/interfaces inherited from class com.oracle.truffle.api.nodes.Node

    com.oracle.truffle.api.nodes.Node.Child, com.oracle.truffle.api.nodes.Node.Children
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    com.oracle.truffle.api.strings.TruffleString
    defineFunction(com.oracle.truffle.api.strings.TruffleString code, SLContext context)
     

    Methods inherited from class com.oracle.truffle.sl.builtins.SLBuiltinNode

    execute

    Methods inherited from class com.oracle.truffle.api.nodes.Node

    accept, adoptChildren, atomic, atomic, copy, deepCopy, getChildren, getCost, getDebugProperties, getDescription, getEncapsulatingSourceSection, getLock, getParent, getRootNode, getSourceSection, insert, insert, isAdoptable, isSafelyReplaceableBy, notifyInserted, onReplace, replace, replace, reportPolymorphicSpecialize, reportReplace, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • SLDefineFunctionBuiltin

      public SLDefineFunctionBuiltin()
  • Method Details

    • defineFunction

      public com.oracle.truffle.api.strings.TruffleString defineFunction(com.oracle.truffle.api.strings.TruffleString code, SLContext context)