Class RefinedCachingCallSite


public class RefinedCachingCallSite extends CachingCallSite
  • Constructor Details

  • Method Details

    • call

      public IRubyObject call(ThreadContext context, IRubyObject caller, IRubyObject self, IRubyObject... args)
      Description copied from class: CallSite
      Call the site's method against the target object passing arguments.
      Overrides:
      call in class CachingCallSite
      Parameters:
      context - the ThreadContext for the current thread
      caller - the caller, for visibility checks
      self - the target object to call against
      args - the arguments to pass
      Returns:
      the result of the call
    • call

      public IRubyObject call(ThreadContext context, IRubyObject caller, IRubyObject self, IRubyObject[] args, Block block)
      Description copied from class: CallSite
      Call the site's method against the target object passing one argument and a non-literal (block pass, &) block.
      Overrides:
      call in class CachingCallSite
      Parameters:
      context - the ThreadContext for the current thread
      caller - the caller, for visibility checks
      self - the target object to call against
      args - the arguments to pass
      block - the block argument to pass
      Returns:
      the result of the call
    • call

      public IRubyObject call(ThreadContext context, IRubyObject caller, IRubyObject self)
      Description copied from class: CallSite
      Call the site's method against the target object passing no args.
      Overrides:
      call in class CachingCallSite
      Parameters:
      context - the ThreadContext for the current thread
      caller - the caller, for visibility checks
      self - the target object to call against
      Returns:
      the result of the call
    • call

      public IRubyObject call(ThreadContext context, IRubyObject caller, IRubyObject self, Block block)
      Description copied from class: CallSite
      Call the site's method against the target object passing no arguments and a non-literal (block pass, &) block.
      Overrides:
      call in class CachingCallSite
      Parameters:
      context - the ThreadContext for the current thread
      caller - the caller, for visibility checks
      self - the target object to call against
      block - the block argument to pass
      Returns:
      the result of the call
    • call

      public IRubyObject call(ThreadContext context, IRubyObject caller, IRubyObject self, IRubyObject arg0)
      Description copied from class: CallSite
      Call the site's method against the target object passing one argument.
      Overrides:
      call in class CachingCallSite
      Parameters:
      context - the ThreadContext for the current thread
      caller - the caller, for visibility checks
      self - the target object to call against
      arg0 - the argument to pass
      Returns:
      the result of the call
    • call

      public IRubyObject call(ThreadContext context, IRubyObject caller, IRubyObject self, IRubyObject arg0, Block block)
      Description copied from class: CallSite
      Call the site's method against the target object passing one argument and a non-literal (block pass, &) block.
      Overrides:
      call in class CachingCallSite
      Parameters:
      context - the ThreadContext for the current thread
      caller - the caller, for visibility checks
      self - the target object to call against
      arg0 - the argument to pass
      block - the block argument to pass
      Returns:
      the result of the call
    • call

      public IRubyObject call(ThreadContext context, IRubyObject caller, IRubyObject self, IRubyObject arg0, IRubyObject arg1)
      Description copied from class: CallSite
      Call the site's method against the target object passing two arguments.
      Overrides:
      call in class CachingCallSite
      Parameters:
      context - the ThreadContext for the current thread
      caller - the caller, for visibility checks
      self - the target object to call against
      arg0 - the first argument to pass
      arg1 - the second argument to pass
      Returns:
      the result of the call
    • call

      public IRubyObject call(ThreadContext context, IRubyObject caller, IRubyObject self, IRubyObject arg0, IRubyObject arg1, Block block)
      Description copied from class: CallSite
      Call the site's method against the target object passing two arguments and a non-literal (block pass, &) block.
      Overrides:
      call in class CachingCallSite
      Parameters:
      context - the ThreadContext for the current thread
      caller - the caller, for visibility checks
      self - the target object to call against
      arg0 - the first argument to pass
      arg1 - the second argument to pass
      block - the block argument to pass
      Returns:
      the result of the call
    • call

      public IRubyObject call(ThreadContext context, IRubyObject caller, IRubyObject self, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2)
      Description copied from class: CallSite
      Call the site's method against the target object passing two arguments.
      Overrides:
      call in class CachingCallSite
      Parameters:
      context - the ThreadContext for the current thread
      caller - the caller, for visibility checks
      self - the target object to call against
      arg0 - the first argument to pass
      arg1 - the second argument to pass
      arg2 - the third argument to pass
      Returns:
      the result of the call
    • call

      public IRubyObject call(ThreadContext context, IRubyObject caller, IRubyObject self, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2, Block block)
      Description copied from class: CallSite
      Call the site's method against the target object passing three arguments and a non-literal (block pass, &) block.
      Overrides:
      call in class CachingCallSite
      Parameters:
      context - the ThreadContext for the current thread
      caller - the caller, for visibility checks
      self - the target object to call against
      arg0 - the first argument to pass
      arg1 - the second argument to pass
      arg2 - the third argument to pass
      block - the block argument to pass
      Returns:
      the result of the call
    • methodMissing

      protected boolean methodMissing(DynamicMethod method, IRubyObject caller)
      Overrides:
      methodMissing in class CachingCallSite