org.jruby.Ruby.callEventHooks()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(6.1k)|赞(0)|评价(0)|浏览(89)

本文整理了Java中org.jruby.Ruby.callEventHooks方法的一些代码示例,展示了Ruby.callEventHooks的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Ruby.callEventHooks方法的具体详情如下:
包路径:org.jruby.Ruby
类名称:Ruby
方法名:callEventHooks

Ruby.callEventHooks介绍

暂无

代码示例

代码示例来源:origin: org.jruby/jruby-core

public void trace(RubyEvent event, String name, RubyModule implClass, String file, int line) {
  runtime.callEventHooks(this, event, file, line, name, implClass);
}

代码示例来源:origin: com.ning.billing/killbill-osgi-bundles-jruby

public void trace(RubyEvent event, String name, RubyModule implClass, String file, int line) {
  runtime.callEventHooks(this, event, file, line, name, implClass);
}

代码示例来源:origin: org.jruby/jruby-complete

public void trace(RubyEvent event, String name, RubyModule implClass, String file, int line) {
  runtime.callEventHooks(this, event, file, line, name, implClass);
}

代码示例来源:origin: org.kill-bill.billing/killbill-osgi-bundles-jruby

public void trace(RubyEvent event, String name, RubyModule implClass, String file, int line) {
  runtime.callEventHooks(this, event, file, line, name, implClass);
}

代码示例来源:origin: com.ning.billing/killbill-osgi-bundles-jruby

private void traceReturn(ThreadContext context, Ruby runtime, String name) {
  runtime.callEventHooks(context, RubyEvent.RETURN, context.getFile(), context.getLine(), name, getImplementationClass());
}

代码示例来源:origin: com.ning.billing/killbill-osgi-bundles-jruby

private void traceCall(ThreadContext context, Ruby runtime, String name) {
  runtime.callEventHooks(context, RubyEvent.CALL, position.getFile(), position.getStartLine(), name, getImplementationClass());
}

代码示例来源:origin: com.ning.billing/killbill-osgi-bundles-jruby

public static void traceLine(ThreadContext context) {
  String name = context.getFrameName();
  RubyModule type = context.getFrameKlazz();
  context.runtime.callEventHooks(context, RubyEvent.LINE, context.getFile(), context.getLine(), name, type);
}

代码示例来源:origin: com.ning.billing/killbill-osgi-bundles-jruby

public static void traceEnd(ThreadContext context) {
  String name = context.getFrameName();
  RubyModule type = context.getFrameKlazz();
  context.runtime.callEventHooks(context, RubyEvent.END, context.getFile(), context.getLine(), name, type);
}

代码示例来源:origin: org.kill-bill.billing/killbill-osgi-bundles-jruby

public static void traceEnd(ThreadContext context) {
  String name = context.getFrameName();
  RubyModule type = context.getFrameKlazz();
  context.runtime.callEventHooks(context, RubyEvent.END, context.getFile(), context.getLine(), name, type);
}

代码示例来源:origin: org.kill-bill.billing/killbill-osgi-bundles-jruby

public static void traceClass(ThreadContext context) {
  String name = context.getFrameName();
  RubyModule type = context.getFrameKlazz();
  context.runtime.callEventHooks(context, RubyEvent.CLASS, context.getFile(), context.getLine(), name, type);
}

代码示例来源:origin: org.kill-bill.billing/killbill-osgi-bundles-jruby

public static void callTraceFunction(Ruby runtime, ThreadContext context, RubyEvent event) {
  String name = context.getFrameName();
  RubyModule type = context.getFrameKlazz();
  runtime.callEventHooks(context, event, context.getFile(), context.getLine(), name, type);
}

代码示例来源:origin: com.ning.billing/killbill-osgi-bundles-jruby

public static void callTraceFunction(Ruby runtime, ThreadContext context, RubyEvent event) {
  String name = context.getFrameName();
  RubyModule type = context.getFrameKlazz();
  runtime.callEventHooks(context, event, context.getFile(), context.getLine(), name, type);
}

代码示例来源:origin: com.ning.billing/killbill-osgi-bundles-jruby

public static void traceClass(ThreadContext context) {
  String name = context.getFrameName();
  RubyModule type = context.getFrameKlazz();
  context.runtime.callEventHooks(context, RubyEvent.CLASS, context.getFile(), context.getLine(), name, type);
}

代码示例来源:origin: org.kill-bill.billing/killbill-osgi-bundles-jruby

public static void traceLine(ThreadContext context) {
  String name = context.getFrameName();
  RubyModule type = context.getFrameKlazz();
  context.runtime.callEventHooks(context, RubyEvent.LINE, context.getFile(), context.getLine(), name, type);
}

代码示例来源:origin: com.ning.billing/killbill-osgi-bundles-jruby

public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule klazz, String name, IRubyObject[] args, Block block) {
  assert args != null;
  Ruby runtime = context.runtime;
  
  if (runtime.hasEventHooks()) {
    runtime.callEventHooks(context, RubyEvent.C_CALL, context.getFile(), context.getLine(), name, getImplementationClass());
    try {
      return callback.execute(self, args, block);
    } finally {
      runtime.callEventHooks(context, RubyEvent.C_RETURN, context.getFile(), context.getLine(), name, getImplementationClass());
    }
  }
  
  return callback.execute(self, args, block);
}

代码示例来源:origin: org.kill-bill.billing/killbill-osgi-bundles-jruby

public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule klazz, String name, IRubyObject[] args, Block block) {
  assert args != null;
  Ruby runtime = context.runtime;
  
  if (runtime.hasEventHooks()) {
    runtime.callEventHooks(context, RubyEvent.C_CALL, context.getFile(), context.getLine(), name, getImplementationClass());
    try {
      return callback.execute(self, args, block);
    } finally {
      runtime.callEventHooks(context, RubyEvent.C_RETURN, context.getFile(), context.getLine(), name, getImplementationClass());
    }
  }
  
  return callback.execute(self, args, block);
}

代码示例来源:origin: org.jruby/jruby-complete

private static void doCallEventHook(final ThreadContext context) {
  if (context.runtime.hasEventHooks()) {
    context.runtime.callEventHooks(context, RubyEvent.RAISE, context.getFile(), context.getLine(), context.getFrameName(), context.getFrameKlazz());
  }
}

代码示例来源:origin: org.jruby/jruby-core

private static void doCallEventHook(final ThreadContext context) {
  if (context.runtime.hasEventHooks()) {
    context.runtime.callEventHooks(context, RubyEvent.RAISE, context.getFile(), context.getLine(), context.getFrameName(), context.getFrameKlazz());
  }
}

代码示例来源:origin: com.ning.billing/killbill-osgi-bundles-jruby

private void doCallEventHook(ThreadContext context) {
  if (context.runtime.hasEventHooks()) {
    context.runtime.callEventHooks(context, RubyEvent.RAISE, context.getFile(), context.getLine(), context.getFrameName(), context.getFrameKlazz());
  }
}

代码示例来源:origin: org.kill-bill.billing/killbill-osgi-bundles-jruby

private void doCallEventHook(ThreadContext context) {
  if (context.runtime.hasEventHooks()) {
    context.runtime.callEventHooks(context, RubyEvent.RAISE, context.getFile(), context.getLine(), context.getFrameName(), context.getFrameKlazz());
  }
}

相关文章

微信公众号

最新文章

更多

Ruby类方法