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

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

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

Ruby.addProfiledMethod介绍

[英]Add a method, so it can be printed out later.
[中]添加一个方法,以便以后可以打印出来。

代码示例

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

/**
 * This method is not intended for use by normal users; it is a fast-path
 * method that skips synchronization and hierarchy invalidation to speed
 * boot-time method definition.
 *
 * @param name The name to which to bind the method
 * @param method The method to bind
 */
public void addMethodAtBootTimeOnly(String name, DynamicMethod method) {
  getMethodsForWrite().put(name, method);
  getRuntime().addProfiledMethod(name, method);
}

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

private void putMethod(String name, DynamicMethod method) {
  getMethodsForWrite().put(name, method);
  getRuntime().addProfiledMethod(name, method);
}

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

/**
 * This method is not intended for use by normal users; it is a fast-path
 * method that skips synchronization and hierarchy invalidation to speed
 * boot-time method definition.
 *
 * @param name The name to which to bind the method
 * @param method The method to bind
 */
public void addMethodAtBootTimeOnly(String name, DynamicMethod method) {
  getMethodsForWrite().put(name, method);
  getRuntime().addProfiledMethod(name, method);
}

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

private void putMethod(String name, DynamicMethod method) {
  getMethodsForWrite().put(name, method);
  getRuntime().addProfiledMethod(name, method);
}

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

/**
 * @note Internal API - only public as its used by generated code!
 * @param runtime
 * @param id identifier string (8859_1).  Matching entry in symbol table.
 * @param method
 * @return method
 */ // NOTE: used by AnnotationBinder
public DynamicMethod putMethod(Ruby runtime, String id, DynamicMethod method) {
  if (hasPrepends()) {
    method = method.dup();
    method.setImplementationClass(methodLocation);
  }
  methodLocation.getMethodsForWrite().put(id, method);
  runtime.addProfiledMethod(id, method);
  return method;
}

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

/**
 * @note Internal API - only public as its used by generated code!
 * @param runtime
 * @param id identifier string (8859_1).  Matching entry in symbol table.
 * @param method
 * @return method
 */ // NOTE: used by AnnotationBinder
public DynamicMethod putMethod(Ruby runtime, String id, DynamicMethod method) {
  if (hasPrepends()) {
    method = method.dup();
    method.setImplementationClass(methodLocation);
  }
  methodLocation.getMethodsForWrite().put(id, method);
  runtime.addProfiledMethod(id, method);
  return method;
}

相关文章

Ruby类方法