本文整理了Java中org.jruby.Ruby.newArrayNoCopyLight
方法的一些代码示例,展示了Ruby.newArrayNoCopyLight
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Ruby.newArrayNoCopyLight
方法的具体详情如下:
包路径:org.jruby.Ruby
类名称:Ruby
方法名:newArrayNoCopyLight
暂无
代码示例来源:origin: com.ning.billing/killbill-osgi-bundles-jruby
@Override
public void assign(Ruby runtime, ThreadContext context, IRubyObject self, IRubyObject values[],
Block block) {
rest.assign(runtime, context, self, runtime.newArrayNoCopyLight(values), block, true);
}
代码示例来源:origin: org.kill-bill.billing/killbill-osgi-bundles-jruby
public IRubyObject newArgsArrayFromArgsWithoutUnbox(IRubyObject[] args, ThreadContext context) {
IRubyObject value;
if (args.length == 0) {
value = context.runtime.getEmptyFrozenArray();
} else {
value = context.runtime.newArrayNoCopyLight(args);
}
return value;
}
}
代码示例来源:origin: com.ning.billing/killbill-osgi-bundles-jruby
@Override
public void assign(Ruby runtime, ThreadContext context, IRubyObject self, Block block) {
assignNilTo(runtime, context, self, block, 0);
rest.assign(runtime, context, self, runtime.newArrayNoCopyLight(IRubyObject.NULL_ARRAY), block, true);
}
代码示例来源:origin: org.kill-bill.billing/killbill-osgi-bundles-jruby
@Override
public IRubyObject interpret(Ruby runtime, ThreadContext context, IRubyObject self, Block aBlock) {
IRubyObject[] array = interpretPrimitive(runtime, context, self, aBlock);
return lightweight ? runtime.newArrayNoCopyLight(array) : runtime.newArrayNoCopy(array);
}
代码示例来源:origin: org.kill-bill.billing/killbill-osgi-bundles-jruby
@Override
public void assign(Ruby runtime, ThreadContext context, IRubyObject self, Block block) {
assignNilTo(runtime, context, self, block, 0);
rest.assign(runtime, context, self, runtime.newArrayNoCopyLight(IRubyObject.NULL_ARRAY), block, true);
}
代码示例来源:origin: org.kill-bill.billing/killbill-osgi-bundles-jruby
@Override
public void assign(Ruby runtime, ThreadContext context, IRubyObject self, IRubyObject value1,
Block block) {
rest.assign(runtime, context, self, runtime.newArrayNoCopyLight(value1), block, true);
blockVar.assign(runtime, context, self, Helpers.processBlockArgument(runtime, block), Block.NULL_BLOCK, false);
}
代码示例来源:origin: org.kill-bill.billing/killbill-osgi-bundles-jruby
@Override
public void assign(Ruby runtime, ThreadContext context, IRubyObject self, IRubyObject value1,
IRubyObject value2, IRubyObject value3, Block block) {
rest.assign(runtime, context, self, runtime.newArrayNoCopyLight(value1, value2, value3), block, true);
blockVar.assign(runtime, context, self, Helpers.processBlockArgument(runtime, block), Block.NULL_BLOCK, false);
}
代码示例来源:origin: com.ning.billing/killbill-osgi-bundles-jruby
@Override
public void assign(Ruby runtime, ThreadContext context, IRubyObject self, IRubyObject value1,
IRubyObject value2, Block block) {
parameter1.assign(runtime, context, self, value1, block, false);
rest.assign(runtime, context, self, runtime.newArrayNoCopyLight(value2), block, true);
blockVar.assign(runtime, context, self, Helpers.processBlockArgument(runtime, block), Block.NULL_BLOCK, false);
}
代码示例来源:origin: com.ning.billing/killbill-osgi-bundles-jruby
@Override
public void assign(Ruby runtime, ThreadContext context, IRubyObject self, Block block) {
IRubyObject nil = runtime.getNil();
parameter1.assign(runtime, context, self, nil, block, false);
parameter2.assign(runtime, context, self, nil, block, false);
parameter3.assign(runtime, context, self, nil, block, false);
rest.assign(runtime, context, self, runtime.newArrayNoCopyLight(IRubyObject.NULL_ARRAY), block, true);
}
代码示例来源:origin: com.ning.billing/killbill-osgi-bundles-jruby
@Override
public void assign(Ruby runtime, ThreadContext context, IRubyObject self, IRubyObject value1,
IRubyObject value2, Block block) {
parameter1.assign(runtime, context, self, value1, block, false);
parameter2.assign(runtime, context, self, value2, block, false);
parameter3.assign(runtime, context, self, runtime.getNil(), block, false);
rest.assign(runtime, context, self, runtime.newArrayNoCopyLight(IRubyObject.NULL_ARRAY), block, true);
}
代码示例来源:origin: com.ning.billing/killbill-osgi-bundles-jruby
@Override
public void assign(Ruby runtime, ThreadContext context, IRubyObject self, IRubyObject value1,
IRubyObject value2, IRubyObject value3, Block block) {
parameter1.assign(runtime, context, self, value1, block, false);
parameter2.assign(runtime, context, self, value2, block, false);
rest.assign(runtime, context, self, runtime.newArrayNoCopyLight(value3), block, true);
blockVar.assign(runtime, context, self, Helpers.processBlockArgument(runtime, block), Block.NULL_BLOCK, false);
}
代码示例来源:origin: org.kill-bill.billing/killbill-osgi-bundles-jruby
@Override
public void assign(Ruby runtime, ThreadContext context, IRubyObject self, Block block) {
IRubyObject nil = runtime.getNil();
parameter1.assign(runtime, context, self, nil, block, false);
parameter2.assign(runtime, context, self, nil, block, false);
parameter3.assign(runtime, context, self, nil, block, false);
rest.assign(runtime, context, self, runtime.newArrayNoCopyLight(IRubyObject.NULL_ARRAY), block, true);
}
代码示例来源:origin: com.ning.billing/killbill-osgi-bundles-jruby
@Override
public void assign(Ruby runtime, ThreadContext context, IRubyObject self, IRubyObject value1,
IRubyObject value2, IRubyObject value3, Block block) {
parameter1.assign(runtime, context, self, value1, block, false);
parameter2.assign(runtime, context, self, value2, block, false);
parameter3.assign(runtime, context, self, value3, block, false);
rest.assign(runtime, context, self, runtime.newArrayNoCopyLight(IRubyObject.NULL_ARRAY), block, true);
blockVar.assign(runtime, context, self, Helpers.processBlockArgument(runtime, block), Block.NULL_BLOCK, false);
}
代码示例来源:origin: org.kill-bill.billing/killbill-osgi-bundles-jruby
@Override
public void assign(Ruby runtime, ThreadContext context, IRubyObject self, IRubyObject value1,
IRubyObject value2, Block block) {
pre.get(0).assign(runtime, context, self, value1, block, false);
pre.get(1).assign(runtime, context, self, value1, block, false);
assignNilTo(runtime, context, self, block, 2);
rest.assign(runtime, context, self, runtime.newArrayNoCopyLight(IRubyObject.NULL_ARRAY), block, true);
}
代码示例来源:origin: com.ning.billing/killbill-osgi-bundles-jruby
@Override
public void assign(Ruby runtime, ThreadContext context, IRubyObject self, IRubyObject value1,
Block block) {
pre.get(0).assign(runtime, context, self, value1, block, false);
assignNilTo(runtime, context, self, block, 1);
rest.assign(runtime, context, self, runtime.newArrayNoCopyLight(IRubyObject.NULL_ARRAY), block, true);
blockVar.assign(runtime, context, self, Helpers.processBlockArgument(runtime, block), Block.NULL_BLOCK, false);
}
代码示例来源:origin: com.ning.billing/killbill-osgi-bundles-jruby
@Override
public void assign(Ruby runtime, ThreadContext context, IRubyObject self, IRubyObject value1,
IRubyObject value2, Block block) {
pre.get(0).assign(runtime, context, self, value1, block, false);
pre.get(1).assign(runtime, context, self, value1, block, false);
assignNilTo(runtime, context, self, block, 2);
rest.assign(runtime, context, self, runtime.newArrayNoCopyLight(IRubyObject.NULL_ARRAY), block, true);
}
代码示例来源:origin: com.ning.billing/killbill-osgi-bundles-jruby
@Override
public void assign(Ruby runtime, ThreadContext context, IRubyObject self, IRubyObject value1,
Block block) {
parameter1.assign(runtime, context, self, value1, block, false);
parameter2.assign(runtime, context, self, runtime.getNil(), block, false);
rest.assign(runtime, context, self, runtime.newArrayNoCopyLight(IRubyObject.NULL_ARRAY), block, true);
blockVar.assign(runtime, context, self, Helpers.processBlockArgument(runtime, block), Block.NULL_BLOCK, false);
}
代码示例来源:origin: org.kill-bill.billing/killbill-osgi-bundles-jruby
@Override
public void assign(Ruby runtime, ThreadContext context, IRubyObject self, IRubyObject value1,
Block block) {
parameter1.assign(runtime, context, self, value1, block, false);
parameter2.assign(runtime, context, self, runtime.getNil(), block, false);
rest.assign(runtime, context, self, runtime.newArrayNoCopyLight(IRubyObject.NULL_ARRAY), block, true);
blockVar.assign(runtime, context, self, Helpers.processBlockArgument(runtime, block), Block.NULL_BLOCK, false);
}
代码示例来源:origin: com.ning.billing/killbill-osgi-bundles-jruby
@Override
public void assign(Ruby runtime, ThreadContext context, IRubyObject self, IRubyObject value1,
IRubyObject value2, IRubyObject value3, Block block) {
pre.get(0).assign(runtime, context, self, value1, block, false);
pre.get(1).assign(runtime, context, self, value1, block, false);
pre.get(2).assign(runtime, context, self, value1, block, false);
assignNilTo(runtime, context, self, block, 3);
rest.assign(runtime, context, self, runtime.newArrayNoCopyLight(IRubyObject.NULL_ARRAY), block, true);
}
代码示例来源:origin: com.ning.billing/killbill-osgi-bundles-jruby
@Override
public void assign(Ruby runtime, ThreadContext context, IRubyObject self, IRubyObject value1,
IRubyObject value2, IRubyObject value3, Block block) {
pre.get(0).assign(runtime, context, self, value1, block, false);
pre.get(1).assign(runtime, context, self, value1, block, false);
pre.get(2).assign(runtime, context, self, value1, block, false);
assignNilTo(runtime, context, self, block, 3);
rest.assign(runtime, context, self, runtime.newArrayNoCopyLight(IRubyObject.NULL_ARRAY), block, true);
blockVar.assign(runtime, context, self, Helpers.processBlockArgument(runtime, block), Block.NULL_BLOCK, false);
}
内容来源于网络,如有侵权,请联系作者删除!