org.jruby.RubyModule.constantsCommon()方法的使用及代码示例

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

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

RubyModule.constantsCommon介绍

[英]rb_mod_constants
[中]rb_mod_常数

代码示例

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

/** rb_mod_constants
 *
 */
public Collection<String> constantsCommon(Ruby runtime, boolean replaceModule, boolean allConstants) {
  return constantsCommon(runtime, replaceModule, allConstants, true);
}

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

/** rb_mod_constants
 *
 */
public Collection<String> constantsCommon(Ruby runtime, boolean replaceModule, boolean allConstants) {
  return constantsCommon(runtime, replaceModule, allConstants, true);
}

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

/** rb_mod_constants
 *
 */
public Collection<String> constantsCommon(Ruby runtime, boolean replaceModule, boolean allConstants) {
  return constantsCommon(runtime, replaceModule, allConstants, true);
}

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

/** rb_mod_constants
 *
 */
public Collection<String> constantsCommon(Ruby runtime, boolean replaceModule, boolean allConstants) {
  return constantsCommon(runtime, replaceModule, allConstants, true);
}

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

@Deprecated // no longer used
public RubyArray constantsCommon19(ThreadContext context, boolean replaceModule, boolean allConstants) {
  return constantsCommon(context, replaceModule, allConstants);
}

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

@Deprecated // no longer used
public RubyArray constantsCommon19(ThreadContext context, boolean replaceModule, boolean allConstants) {
  return constantsCommon(context, replaceModule, allConstants);
}

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

@JRubyMethod(name = "constants")
public RubyArray constants(ThreadContext context) {
  return constantsCommon(context, true, true);
}

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

@JRubyMethod(name = "constants")
public RubyArray constants(ThreadContext context) {
  return constantsCommon(context, true, true);
}

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

@JRubyMethod(name = "constants")
public RubyArray constants(ThreadContext context, IRubyObject allConstants) {
  return constantsCommon(context, false, allConstants.isTrue());
}

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

@JRubyMethod(name = "constants")
public RubyArray constants(ThreadContext context, IRubyObject allConstants) {
  return constantsCommon(context, false, allConstants.isTrue());
}

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

private RubyArray constantsCommon(ThreadContext context, boolean replaceModule, boolean allConstants) {
  Ruby runtime = context.runtime;
  Collection<String> constantNames = constantsCommon(runtime, replaceModule, allConstants, false);
  RubyArray array = runtime.newArray(constantNames.size());
  for (String name : constantNames) {
    array.append(runtime.newSymbol(name));
  }
  return array;
}

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

private RubyArray constantsCommon(ThreadContext context, boolean replaceModule, boolean allConstants) {
  Ruby runtime = context.runtime;
  Collection<String> constantNames = constantsCommon(runtime, replaceModule, allConstants, false);
  RubyArray array = runtime.newArray(constantNames.size());
  for (String name : constantNames) {
    array.append(runtime.newSymbol(name));
  }
  return array;
}

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

@JRubyMethod(name = "constants", compat = RUBY1_8)
public RubyArray constants(ThreadContext context) {
  Ruby runtime = context.runtime;
  RubyArray array = runtime.newArray();
  Collection<String> constantNames = constantsCommon(runtime, true, true);
  array.addAll(constantNames);
  
  return array;
}

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

public RubyArray constantsCommon19(ThreadContext context, boolean replaceModule, boolean allConstants) {
  Ruby runtime = context.runtime;
  RubyArray array = runtime.newArray();
  
  Collection<String> constantNames = constantsCommon(runtime, replaceModule, allConstants, false);
  
  for (String name : constantNames) {
    array.add(runtime.newSymbol(name));
  }
  return array;
}

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

@JRubyMethod(name = "constants", compat = RUBY1_8)
public RubyArray constants(ThreadContext context) {
  Ruby runtime = context.runtime;
  RubyArray array = runtime.newArray();
  Collection<String> constantNames = constantsCommon(runtime, true, true);
  array.addAll(constantNames);
  
  return array;
}

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

public RubyArray constantsCommon19(ThreadContext context, boolean replaceModule, boolean allConstants) {
  Ruby runtime = context.runtime;
  RubyArray array = runtime.newArray();
  
  Collection<String> constantNames = constantsCommon(runtime, replaceModule, allConstants, false);
  
  for (String name : constantNames) {
    array.add(runtime.newSymbol(name));
  }
  return array;
}

相关文章

微信公众号

最新文章

更多

RubyModule类方法