public final IRubyObject call(ThreadContext context, IRubyObject self, RubyModule clazz, String name, IRubyObject[] args, Block block) { switch (args.length) { // still delegate to different arity calls as they might get overriden e.g. for native // JRuby methods that use overloading for different kind arity of received arguments ! case 0: return call(context, self, clazz, name); case 1: return call(context, self, clazz, name, args[0]); case 2: return call(context, self, clazz, name, args[0], args[1]); default: return call(context, self, clazz, name, args); } }
@Override public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule clazz, String name, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2, Block block) { return call(context, self, clazz, name, new IRubyObject[] {arg0, arg1, arg2}); }
public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule clazz, String name, IRubyObject[] args, Block block) { return call(context, self, clazz, name, args); } }
public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule clazz, String name, IRubyObject[] args, Block block) { return call(context, self, clazz, name, args); } }
@Override public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule clazz, String name, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2, Block block) { return call(context, self, clazz, name, new IRubyObject[] {arg0, arg1, arg2}); }
@Override public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule clazz, String name, IRubyObject arg0, IRubyObject arg1, Block block) { return call(context, self, clazz, name, new IRubyObject[] {arg0, arg1}); } @Override
@Override public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule clazz, String name, IRubyObject arg0, Block block) { return call(context, self, clazz, name, new IRubyObject[] {arg0}); } @Override
@Override public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule clazz, String name, Block block) { return call(context, self, clazz, name, IRubyObject.NULL_ARRAY); } @Override
@Override public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule clazz, String name, IRubyObject arg0, Block block) { return call(context, self, clazz, name, new IRubyObject[] {arg0}); } @Override
@Override public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule clazz, String name, Block block) { return call(context, self, clazz, name, IRubyObject.NULL_ARRAY); } @Override
@Override public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule clazz, String name, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2, Block block) { return call(context, self, clazz, name, new IRubyObject[] {arg0, arg1, arg2}); }
public final IRubyObject call(ThreadContext context, IRubyObject self, RubyModule clazz, String name, IRubyObject[] args, Block block) { switch (args.length) { // still delegate to different arity calls as they might get overriden e.g. for native // JRuby methods that use overloading for different kind arity of received arguments ! case 0: return call(context, self, clazz, name); case 1: return call(context, self, clazz, name, args[0]); case 2: return call(context, self, clazz, name, args[0], args[1]); default: return call(context, self, clazz, name, args); } }
@Override public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule clazz, String name, IRubyObject arg0, IRubyObject arg1, Block block) { return call(context, self, clazz, name, new IRubyObject[] {arg0, arg1}); } @Override
@Override public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule clazz, String name, IRubyObject arg0, Block block) { return call(context, self, clazz, name, new IRubyObject[] {arg0}); } @Override
@Override public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule clazz, String name, Block block) { return call(context, self, clazz, name, IRubyObject.NULL_ARRAY); } @Override
@Override public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule clazz, String name, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2, Block block) { return call(context, self, clazz, name, new IRubyObject[] {arg0, arg1, arg2}); }
@Override public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule clazz, String name, IRubyObject arg0, Block block) { return call(context, self, clazz, name, new IRubyObject[] {arg0}); } @Override
@Override public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule clazz, String name, IRubyObject arg0, IRubyObject arg1, Block block) { return call(context, self, clazz, name, new IRubyObject[] {arg0, arg1}); } @Override
@Override public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule clazz, String name, IRubyObject arg0, IRubyObject arg1, Block block) { return call(context, self, clazz, name, new IRubyObject[] {arg0, arg1}); } @Override
@Override public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule clazz, String name, Block block) { return call(context, self, clazz, name, IRubyObject.NULL_ARRAY); } @Override