public IRubyObject finvoke(ThreadContext context, IRubyObject self, String name) { DynamicMethod method = searchMethod(name); if (shouldCallMethodMissing(method)) { return Helpers.callMethodMissing(context, self, this, method.getVisibility(), name, CallType.FUNCTIONAL, Block.NULL_BLOCK); } return method.call(context, self, this, name); }
/** * Same behavior as finvoke, but uses the given caller object to check visibility if callType demands it. */ public IRubyObject invokeFrom(ThreadContext context, CallType callType, IRubyObject caller, IRubyObject self, String name, Block block) { DynamicMethod method = searchMethod(name); if (shouldCallMethodMissing(method, name, caller, callType)) { return Helpers.callMethodMissing(context, self, this, method.getVisibility(), name, callType, block); } return method.call(context, self, this, name, block); }
/** * Same behavior as finvoke, but uses the given caller object to check visibility if callType demands it. */ public IRubyObject invokeFrom(ThreadContext context, CallType callType, IRubyObject caller, IRubyObject self, String name, IRubyObject arg, Block block) { DynamicMethod method = searchMethod(name); if (shouldCallMethodMissing(method, name, caller, callType)) { return Helpers.callMethodMissing(context, self, this, method.getVisibility(), name, callType, arg, block); } return method.call(context, self, this, name, arg, block); }
/** * Same behavior as finvoke, but uses the given caller object to check visibility if callType demands it. */ public IRubyObject invokeFrom(ThreadContext context, CallType callType, IRubyObject caller, IRubyObject self, String name, IRubyObject[] args) { assert args != null; DynamicMethod method = searchMethod(name); if (shouldCallMethodMissing(method, name, caller, callType)) { return Helpers.callMethodMissing(context, self, this, method.getVisibility(), name, callType, args, Block.NULL_BLOCK); } return method.call(context, self, this, name, args); }
public IRubyObject finvoke(ThreadContext context, IRubyObject self, String name, IRubyObject arg, Block block) { DynamicMethod method = searchMethod(name); if (shouldCallMethodMissing(method)) { return Helpers.callMethodMissing(context, self, this, method.getVisibility(), name, CallType.FUNCTIONAL, arg, block); } return method.call(context, self, this, name, arg, block); }
public IRubyObject finvoke(ThreadContext context, IRubyObject self, String name, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2, Block block) { DynamicMethod method = searchMethod(name); if (shouldCallMethodMissing(method)) { return Helpers.callMethodMissing(context, self, this, method.getVisibility(), name, CallType.FUNCTIONAL, arg0, arg1, arg2, block); } return method.call(context, self, this, name, arg0, arg1, arg2, block); }
/** * Same behavior as finvoke, but uses the given caller object to check visibility if callType demands it. */ public IRubyObject invokeFrom(ThreadContext context, CallType callType, IRubyObject caller, IRubyObject self, String name, IRubyObject arg0, IRubyObject arg1, Block block) { // NOT USED? DynamicMethod method = searchMethod(name); if (shouldCallMethodMissing(method, name, caller, callType)) { return Helpers.callMethodMissing(context, self, this, method.getVisibility(), name, callType, arg0, arg1, block); } return method.call(context, self, this, name, arg0, arg1, block); }
public IRubyObject finvoke(ThreadContext context, IRubyObject self, String name, IRubyObject arg0, IRubyObject arg1) { DynamicMethod method = searchMethod(name); if (shouldCallMethodMissing(method)) { return Helpers.callMethodMissing(context, self, this, method.getVisibility(), name, CallType.FUNCTIONAL, arg0, arg1, Block.NULL_BLOCK); } return method.call(context, self, this, name, arg0, arg1); }
/** * Same behavior as finvoke, but uses the given caller object to check visibility if callType demands it. */ public IRubyObject invokeFrom(ThreadContext context, CallType callType, IRubyObject caller, IRubyObject self, String name, IRubyObject[] args, Block block) { assert args != null; DynamicMethod method = searchMethod(name); if (shouldCallMethodMissing(method, name, caller, callType)) { return Helpers.callMethodMissing(context, self, this, method.getVisibility(), name, callType, args, block); } return method.call(context, self, this, name, args, block); }
/** * Same behavior as finvoke, but uses the given caller object to check visibility if callType demands it. */ public IRubyObject invokeFrom(ThreadContext context, CallType callType, IRubyObject caller, IRubyObject self, String name, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2, Block block) { DynamicMethod method = searchMethod(name); if (shouldCallMethodMissing(method, name, caller, callType)) { return Helpers.callMethodMissing(context, self, this, method.getVisibility(), name, callType, arg0, arg1, arg2, block); } return method.call(context, self, this, name, arg0, arg1, arg2, block); }
/** * Same behavior as finvoke, but uses the given caller object to check visibility if callType demands it. */ public IRubyObject invokeFrom(ThreadContext context, CallType callType, IRubyObject caller, IRubyObject self, String name, IRubyObject arg0, IRubyObject arg1) { DynamicMethod method = searchMethod(name); if (shouldCallMethodMissing(method, name, caller, callType)) { return Helpers.callMethodMissing(context, self, this, method.getVisibility(), name, callType, arg0, arg1, Block.NULL_BLOCK); } return method.call(context, self, this, name, arg0, arg1); }
public IRubyObject finvoke(ThreadContext context, IRubyObject self, String name, IRubyObject arg) { DynamicMethod method = searchMethod(name); if (shouldCallMethodMissing(method)) { return Helpers.callMethodMissing(context, self, this, method.getVisibility(), name, CallType.FUNCTIONAL, arg, Block.NULL_BLOCK); } return method.call(context, self, this, name, arg); }
public IRubyObject finvoke(ThreadContext context, IRubyObject self, String name, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2) { DynamicMethod method = searchMethod(name); if (shouldCallMethodMissing(method)) { return Helpers.callMethodMissing(context, self, this, method.getVisibility(), name, CallType.FUNCTIONAL, arg0, arg1, arg2, Block.NULL_BLOCK); } return method.call(context, self, this, name, arg0, arg1, arg2); }
public IRubyObject finvoke(ThreadContext context, IRubyObject self, String name, IRubyObject arg0, IRubyObject arg1, Block block) { DynamicMethod method = searchMethod(name); if (shouldCallMethodMissing(method)) { return Helpers.callMethodMissing(context, self, this, method.getVisibility(), name, CallType.FUNCTIONAL, arg0, arg1, block); } return method.call(context, self, this, name, arg0, arg1, block); }
/** * Same behavior as finvoke, but uses the given caller object to check visibility if callType demands it. */ public IRubyObject invokeFrom(ThreadContext context, CallType callType, IRubyObject caller, IRubyObject self, String name, IRubyObject arg) { DynamicMethod method = searchMethod(name); if (shouldCallMethodMissing(method, name, caller, callType)) { return Helpers.callMethodMissing(context, self, this, method.getVisibility(), name, callType, arg, Block.NULL_BLOCK); } return method.call(context, self, this, name, arg); }
/** * Same behavior as finvoke, but uses the given caller object to check visibility if callType demands it. */ public IRubyObject invokeFrom(ThreadContext context, CallType callType, IRubyObject caller, IRubyObject self, String name, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2) { DynamicMethod method = searchMethod(name); if (shouldCallMethodMissing(method, name, caller, callType)) { return Helpers.callMethodMissing(context, self, this, method.getVisibility(), name, callType, arg0, arg1, arg2, Block.NULL_BLOCK); } return method.call(context, self, this, name, arg0, arg1, arg2); }
public IRubyObject finvoke(ThreadContext context, IRubyObject self, String name, IRubyObject[] args) { assert args != null; DynamicMethod method = searchMethod(name); if (shouldCallMethodMissing(method)) { return Helpers.callMethodMissing(context, self, this, method.getVisibility(), name, CallType.FUNCTIONAL, args, Block.NULL_BLOCK); } return method.call(context, self, this, name, args); }
public IRubyObject finvoke(ThreadContext context, IRubyObject self, String name, Block block) { DynamicMethod method = searchMethod(name); if (shouldCallMethodMissing(method)) { return Helpers.callMethodMissing(context, self, this, method.getVisibility(), name, CallType.FUNCTIONAL, block); } return method.call(context, self, this, name, block); }
public IRubyObject finvoke(ThreadContext context, IRubyObject self, String name, IRubyObject[] args, Block block) { assert args != null; DynamicMethod method = searchMethod(name); if (shouldCallMethodMissing(method)) { return Helpers.callMethodMissing(context, self, this, method.getVisibility(), name, CallType.FUNCTIONAL, args, block); } return method.call(context, self, this, name, args, block); }
/** * Same behavior as finvoke, but uses the given caller object to check visibility if callType demands it. */ public IRubyObject invokeFrom(ThreadContext context, CallType callType, IRubyObject caller, IRubyObject self, String name) { DynamicMethod method = searchMethod(name); if (shouldCallMethodMissing(method, name, caller, callType)) { return Helpers.callMethodMissing(context, self, this, method.getVisibility(), name, callType, Block.NULL_BLOCK); } return method.call(context, self, this, name); }