本文整理了Java中org.jruby.RubyModule.constantsCommon
方法的一些代码示例,展示了RubyModule.constantsCommon
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。RubyModule.constantsCommon
方法的具体详情如下:
包路径:org.jruby.RubyModule
类名称: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;
}
内容来源于网络,如有侵权,请联系作者删除!