@Override public int hashCode() { long serial = method.getRealMethod().getSerialNumber(); return 997 * ((int) (serial >> 32) ^ (int) serial & 0xFF); }
public String getFilename() { DynamicMethod realMethod = method.getRealMethod(); // Follow Aliases if (realMethod instanceof PositionAware) { PositionAware poser = (PositionAware) realMethod; return poser.getFile(); } return null; }
public int getLine() { DynamicMethod realMethod = method.getRealMethod(); // Follow Aliases if (realMethod instanceof PositionAware) { PositionAware poser = (PositionAware) realMethod; return poser.getLine() + 1; } return -1; }
@Override public int hashCode() { long serial = method.getRealMethod().getSerialNumber(); return 997 * ((int) (serial >> 32) ^ (int) serial & 0xFF); }
public int getLine() { DynamicMethod realMethod = method.getRealMethod(); // Follow Aliases if (realMethod instanceof PositionAware) { PositionAware poser = (PositionAware) realMethod; return poser.getLine() + 1; } return -1; }
@Override public boolean equals(Object other) { if (!(other instanceof AbstractRubyMethod)) return false; if (method instanceof ProcMethod) { return ((ProcMethod) method).isSame(((AbstractRubyMethod) other).getMethod()); } AbstractRubyMethod otherMethod = (AbstractRubyMethod) other; return originModule == otherMethod.originModule && method.getRealMethod().getSerialNumber() == otherMethod.method.getRealMethod().getSerialNumber(); }
@Override public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule clazz, String name, IRubyObject arg0, IRubyObject arg1) { int previousSerial = context.profileEnter(name, this.delegate.getRealMethod()); final long start = System.nanoTime(); try { return delegate.call(context, self, clazz, name, arg0, arg1); } finally { context.profileExit(previousSerial, start); } }
@Override public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule clazz, String name, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2) { int previousSerial = context.profileEnter(name, this.delegate.getRealMethod()); final long start = System.nanoTime(); try { return delegate.call(context, self, clazz, name, arg0, arg1, arg2); } finally { context.profileExit(previousSerial, start); } }
@Override public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule clazz, String name, Block block) { int previousSerial = context.profileEnter(name, this.delegate.getRealMethod()); final long start = System.nanoTime(); try { return delegate.call(context, self, clazz, name, block); } finally { context.profileExit(previousSerial, start); } }
@Override public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule clazz, String name, IRubyObject arg0, IRubyObject arg1, Block block) { int previousSerial = context.profileEnter(name, this.delegate.getRealMethod()); final long start = System.nanoTime(); try { return delegate.call(context, self, clazz, name, arg0, arg1, block); } finally { context.profileExit(previousSerial, start); } }
@Override public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule clazz, String name, IRubyObject[] args, Block block) { int previousSerial = context.profileEnter(name, this.delegate.getRealMethod()); final long start = System.nanoTime(); try { return delegate.call(context, self, clazz, name, args, block); } finally { context.profileExit(previousSerial, start); } }
@Override public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule clazz, String name, Block block) { int previousSerial = context.profileEnter(name, this.delegate.getRealMethod()); final long start = System.nanoTime(); try { return delegate.call(context, self, clazz, name, block); } finally { context.profileExit(previousSerial, start); } }
@Override public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule clazz, String name, IRubyObject[] args, Block block) { int previousSerial = context.profileEnter(name, this.delegate.getRealMethod()); final long start = System.nanoTime(); try { return delegate.call(context, self, clazz, name, args, block); } finally { context.profileExit(previousSerial, start); } }
@Override public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule clazz, String name) { int previousSerial = context.profileEnter(name, this.delegate.getRealMethod()); final long start = System.nanoTime(); try { return delegate.call(context, self, clazz, name); } finally { context.profileExit(previousSerial, start); } }
@Override public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule clazz, String name, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2) { int previousSerial = context.profileEnter(name, this.delegate.getRealMethod()); final long start = System.nanoTime(); try { return delegate.call(context, self, clazz, name, arg0, arg1, arg2); } finally { context.profileExit(previousSerial, start); } }
@Override public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule clazz, String name, IRubyObject arg0, Block block) { int previousSerial = context.profileEnter(name, this.delegate.getRealMethod()); final long start = System.nanoTime(); try { return delegate.call(context, self, clazz, name, arg0, block); } finally { context.profileExit(previousSerial, start); } }
@Override public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule clazz, String name, IRubyObject arg0) { int previousSerial = context.profileEnter(name, this.delegate.getRealMethod()); final long start = System.nanoTime(); try { return delegate.call(context, self, clazz, name, arg0); } finally { context.profileExit(previousSerial, start); } }
@Override public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule clazz, String name, IRubyObject[] args) { int previousSerial = context.profileEnter(name, this.delegate.getRealMethod()); long start = System.nanoTime(); try { return delegate.call(context, self, clazz, name, args); } finally { context.profileExit(previousSerial, start); } }
@Override public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule clazz, String name, Block block) { int previousSerial = context.profileEnter(name, this.delegate.getRealMethod()); final long start = System.nanoTime(); try { return delegate.call(context, self, clazz, name, block); } finally { context.profileExit(previousSerial, start); } }
@Override public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule clazz, String name, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2, Block block) { int previousSerial = context.profileEnter(name, this.delegate.getRealMethod()); final long start = System.nanoTime(); try { return delegate.call(context, self, clazz, name, arg0, arg1, arg2, block); } finally { context.profileExit(previousSerial, start); } }