Class DefaultCallTarget

java.lang.Object
com.oracle.truffle.api.impl.DefaultCallTarget
All Implemented Interfaces:
CallTarget, RootCallTarget

public class DefaultCallTarget extends Object implements RootCallTarget
This is an implementation-specific class. Do not use or instantiate it. Instead, use TruffleRuntime.createCallTarget(RootNode) to create a RootCallTarget.
  • Constructor Details

    • DefaultCallTarget

      public DefaultCallTarget(RootNode function)
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getRootNode

      public final RootNode getRootNode()
      Specified by:
      getRootNode in interface RootCallTarget
    • call

      public Object call(Object... args)
      Description copied from interface: CallTarget
      Calls this target as a root method.
      Specified by:
      call in interface CallTarget
      Parameters:
      args - passed arguments as an object array
      Returns:
      the return result of the call