@Override public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule clazz, String name, IRubyObject[] args, Block block) { if (IRRuntimeHelpers.isDebug()) { // FIXME: name should probably not be "" ever. String realName = name == null || "".equals(name) ? this.name : name; LOG.info("Executing '" + realName + "'"); } try { // update call stacks (push: frame, class, scope, etc.) RubyModule implementationClass = getImplementationClass(); context.preMethodFrameAndScope(implementationClass, name, self, block, scope); context.setCurrentVisibility(getVisibility()); return (IRubyObject)this.method.invokeWithArguments(context, scope, self, args, block); } catch (Throwable t) { Helpers.throwException(t); // not reached return null; } finally { // update call stacks (pop: ..) context.popFrame(); context.postMethodScopeOnly(); } }
@Override public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule clazz, String name, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2, Block block) { if (IRRuntimeHelpers.isDebug()) { // FIXME: name should probably not be "" ever. String realName = name == null || "".equals(name) ? this.name : name; LOG.info("Executing '" + realName + "'"); } try { // update call stacks (push: frame, class, scope, etc.) RubyModule implementationClass = getImplementationClass(); context.preMethodFrameAndScope(implementationClass, name, self, block, scope); context.setCurrentVisibility(getVisibility()); return (IRubyObject)this.method.invokeWithArguments(context, scope, self, arg0, arg1, arg2, block); } catch (Throwable t) { Helpers.throwException(t); // not reached return null; } finally { // update call stacks (pop: ..) context.popFrame(); context.postMethodScopeOnly(); } }
@Override public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule clazz, String name, Block block) { if (IRRuntimeHelpers.isDebug()) { // FIXME: name should probably not be "" ever. String realName = name == null || "".equals(name) ? this.name : name; LOG.info("Executing '" + realName + "'"); } try { // update call stacks (push: frame, class, scope, etc.) RubyModule implementationClass = getImplementationClass(); context.preMethodFrameAndScope(implementationClass, name, self, block, scope); context.setCurrentVisibility(getVisibility()); return (IRubyObject)this.method.invokeWithArguments(context, scope, self, block); } catch (Throwable t) { Helpers.throwException(t); // not reached return null; } finally { // update call stacks (pop: ..) context.popFrame(); context.postMethodScopeOnly(); } }
@Override public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule clazz, String name, IRubyObject arg0, Block block) { if (IRRuntimeHelpers.isDebug()) { // FIXME: name should probably not be "" ever. String realName = name == null || "".equals(name) ? this.name : name; LOG.info("Executing '" + realName + "'"); } try { // update call stacks (push: frame, class, scope, etc.) RubyModule implementationClass = getImplementationClass(); context.preMethodFrameAndScope(implementationClass, name, self, block, scope); context.setCurrentVisibility(getVisibility()); return (IRubyObject)this.method.invokeWithArguments(context, scope, self, arg0, block); } catch (Throwable t) { Helpers.throwException(t); // not reached return null; } finally { // update call stacks (pop: ..) context.popFrame(); context.postMethodScopeOnly(); } }
@Override public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule clazz, String name, IRubyObject[] args, Block block) { if (IRRuntimeHelpers.isDebug()) { // FIXME: name should probably not be "" ever. String realName = name == null || "".equals(name) ? this.name : name; LOG.info("Executing '" + realName + "'"); } try { // update call stacks (push: frame, class, scope, etc.) RubyModule implementationClass = getImplementationClass(); context.preMethodFrameAndScope(implementationClass, name, self, block, scope); context.setCurrentVisibility(getVisibility()); return (IRubyObject)this.method.invokeWithArguments(context, scope, self, args, block); } catch (Throwable t) { Helpers.throwException(t); // not reached return null; } finally { // update call stacks (pop: ..) context.popFrame(); context.postMethodScopeOnly(); } }
@Override public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule clazz, String name, Block block) { if (IRRuntimeHelpers.isDebug()) { // FIXME: name should probably not be "" ever. String realName = name == null || "".equals(name) ? this.name : name; LOG.info("Executing '" + realName + "'"); } try { // update call stacks (push: frame, class, scope, etc.) RubyModule implementationClass = getImplementationClass(); context.preMethodFrameAndScope(implementationClass, name, self, block, scope); context.setCurrentVisibility(getVisibility()); return (IRubyObject)this.method.invokeWithArguments(context, scope, self, block); } catch (Throwable t) { Helpers.throwException(t); // not reached return null; } finally { // update call stacks (pop: ..) context.popFrame(); context.postMethodScopeOnly(); } }
@Override public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule clazz, String name, IRubyObject arg0, IRubyObject arg1, Block block) { if (IRRuntimeHelpers.isDebug()) { // FIXME: name should probably not be "" ever. String realName = name == null || "".equals(name) ? this.name : name; LOG.info("Executing '" + realName + "'"); } try { // update call stacks (push: frame, class, scope, etc.) RubyModule implementationClass = getImplementationClass(); context.preMethodFrameAndScope(implementationClass, name, self, block, scope); context.setCurrentVisibility(getVisibility()); return (IRubyObject)this.method.invokeWithArguments(context, scope, self, arg0, arg1, block); } catch (Throwable t) { Helpers.throwException(t); // not reached return null; } finally { // update call stacks (pop: ..) context.popFrame(); context.postMethodScopeOnly(); } }
@Override public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule clazz, String name, IRubyObject arg0, Block block) { if (IRRuntimeHelpers.isDebug()) { // FIXME: name should probably not be "" ever. String realName = name == null || "".equals(name) ? this.name : name; LOG.info("Executing '" + realName + "'"); } try { // update call stacks (push: frame, class, scope, etc.) RubyModule implementationClass = getImplementationClass(); context.preMethodFrameAndScope(implementationClass, name, self, block, scope); context.setCurrentVisibility(getVisibility()); return (IRubyObject)this.method.invokeWithArguments(context, scope, self, arg0, block); } catch (Throwable t) { Helpers.throwException(t); // not reached return null; } finally { // update call stacks (pop: ..) context.popFrame(); context.postMethodScopeOnly(); } }
@Override public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule clazz, String name, IRubyObject arg0, IRubyObject arg1, Block block) { if (IRRuntimeHelpers.isDebug()) { // FIXME: name should probably not be "" ever. String realName = name == null || "".equals(name) ? this.name : name; LOG.info("Executing '" + realName + "'"); } try { // update call stacks (push: frame, class, scope, etc.) RubyModule implementationClass = getImplementationClass(); context.preMethodFrameAndScope(implementationClass, name, self, block, scope); context.setCurrentVisibility(getVisibility()); return (IRubyObject)this.method.invokeWithArguments(context, scope, self, arg0, arg1, block); } catch (Throwable t) { Helpers.throwException(t); // not reached return null; } finally { // update call stacks (pop: ..) context.popFrame(); context.postMethodScopeOnly(); } }
@Override public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule clazz, String name, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2, Block block) { if (IRRuntimeHelpers.isDebug()) { // FIXME: name should probably not be "" ever. String realName = name == null || "".equals(name) ? this.name : name; LOG.info("Executing '" + realName + "'"); } try { // update call stacks (push: frame, class, scope, etc.) RubyModule implementationClass = getImplementationClass(); context.preMethodFrameAndScope(implementationClass, name, self, block, scope); context.setCurrentVisibility(getVisibility()); return (IRubyObject)this.method.invokeWithArguments(context, scope, self, arg0, arg1, arg2, block); } catch (Throwable t) { Helpers.throwException(t); // not reached return null; } finally { // update call stacks (pop: ..) context.popFrame(); context.postMethodScopeOnly(); } }