org.jruby.anno.JRubyMethod.module()方法的使用及代码示例

x33g5p2x  于2022-01-22 转载在 其他  
字(4.1k)|赞(0)|评价(0)|浏览(76)

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

JRubyMethod.module介绍

暂无

代码示例

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

public void generateMethodAddCalls(ExecutableElement md, JRubyMethod jrubyMethod) {
  if (jrubyMethod.meta()) {
    defineMethodOnClass("javaMethod", "singletonClass", jrubyMethod, md);
  } else {
    defineMethodOnClass("javaMethod", "cls", jrubyMethod, md);
    if (jrubyMethod.module()) {
      out.println("        moduleMethod = populateModuleMethod(cls, javaMethod);");
      defineMethodOnClass("moduleMethod", "singletonClass", jrubyMethod, md);
    }
  }
  //                }
}

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

public void generateMethodAddCalls(ExecutableElement md, JRubyMethod jrubyMethod) {
  if (jrubyMethod.meta()) {
    defineMethodOnClass("javaMethod", "singletonClass", jrubyMethod, md);
  } else {
    defineMethodOnClass("javaMethod", "cls", jrubyMethod, md);
    if (jrubyMethod.module()) {
      out.println("        moduleMethod = populateModuleMethod(cls, javaMethod);");
      defineMethodOnClass("moduleMethod", "singletonClass", jrubyMethod, md);
    }
  }
  //                }
}

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

public void generateMethodAddCalls(ExecutableElement md, JRubyMethod anno) {
  generateMethodAddCalls(md, anno.meta(), anno.module(), anno.name(), anno.alias());
}

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

public void generateMethodAddCalls(ExecutableElement md, JRubyMethod anno) {
  generateMethodAddCalls(md, anno.meta(), anno.module(), anno.name(), anno.alias());
}

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

hasModule |= anno.module();

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

hasModule |= anno.module();

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

hasModule |= anno.module();
hasCompat |= anno.compat() != CompatVersion.BOTH;

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

hasModule |= anno.module();
hasCompat |= anno.compat() != CompatVersion.BOTH;

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

hasModule |= anno.module();

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

hasModule |= anno.module();

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

public void generateMethodAddCalls(ExecutableElement md, JRubyMethod jrubyMethod) {
  final String[] names = jrubyMethod.name();
  final String[] aliases = jrubyMethod.alias();
  if (jrubyMethod.meta()) {
    defineMethodOnClass(BASEMETHOD, SINGLETONCLASS, names, aliases, md);
  } else {
    defineMethodOnClass(BASEMETHOD, CLASS, names, aliases, md);
    if (jrubyMethod.module()) {
      mv.aload(CLASS);
      mv.aload(BASEMETHOD);
      mv.invokestatic("org/jruby/anno/TypePopulator", "populateModuleMethod", "(Lorg/jruby/RubyModule;Lorg/jruby/internal/runtime/methods/DynamicMethod;)Lorg/jruby/internal/runtime/methods/DynamicMethod;");
      mv.astore(MODULEMETHOD);
      defineMethodOnClass(MODULEMETHOD, SINGLETONCLASS, names, aliases, md);
    }
  }
}

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

public void generateMethodAddCalls(ExecutableElement md, JRubyMethod jrubyMethod) {
  final String[] names = jrubyMethod.name();
  final String[] aliases = jrubyMethod.alias();
  if (jrubyMethod.meta()) {
    defineMethodOnClass(BASEMETHOD, SINGLETONCLASS, names, aliases, md);
  } else {
    defineMethodOnClass(BASEMETHOD, CLASS, names, aliases, md);
    if (jrubyMethod.module()) {
      mv.aload(CLASS);
      mv.aload(BASEMETHOD);
      mv.invokestatic("org/jruby/anno/TypePopulator", "populateModuleMethod", "(Lorg/jruby/RubyModule;Lorg/jruby/internal/runtime/methods/DynamicMethod;)Lorg/jruby/internal/runtime/methods/DynamicMethod;");
      mv.astore(MODULEMETHOD);
      defineMethodOnClass(MODULEMETHOD, SINGLETONCLASS, names, aliases, md);
    }
  }
}

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

if (jrubyMethod.module()) {
  singletonClass = module.getSingletonClass();

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

if (jrubyMethod.module()) {
  singletonClass = module.getSingletonClass();

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

if (jrubyMethod.module()) {
  singletonClass = module.getSingletonClass();

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

if (jrubyMethod.module()) {
  singletonClass = module.getSingletonClass();

相关文章