Class JavaMethod.JavaMethodThree

All Implemented Interfaces:
Cloneable, MethodArgs2, NativeCallMethod
Enclosing class:
JavaMethod

public abstract static class JavaMethod.JavaMethodThree extends JavaMethod.JavaMethodThreeOrN
  • Constructor Details

  • Method Details

    • call

      public final IRubyObject call(ThreadContext context, IRubyObject self, RubyModule clazz, String name, IRubyObject[] args)
      Description copied from class: DynamicMethod
      A default implementation of n-arity, non-block 'call' method, which simply calls the n-arity, block-receiving version with the arg list and Block.NULL_BLOCK.
      Specified by:
      call in class JavaMethod.JavaMethodN
      Parameters:
      context - The thread context for the currently executing thread
      self - The 'self' or 'receiver' object to use for this call
      clazz - The Ruby class against which this method is binding
      name - The incoming name used to invoke this method
      args - The first argument to this invocation
      Returns:
      The result of the call
    • getArity

      @Deprecated public Arity getArity()
      Deprecated.
      Description copied from class: DynamicMethod
      Retrieve the arity of this method, used for reporting arity to Ruby code. This arity may or may not reflect the actual specific or variable arities of the referenced method.
      Overrides:
      getArity in class JavaMethod
      Returns:
      The arity of the method, as reported to Ruby consumers.
    • getSignature

      public Signature getSignature()
      Description copied from class: DynamicMethod
      Retrieve the signature of this method.
      Overrides:
      getSignature in class JavaMethod
      Returns:
      the signature