org.jruby.RubyClass.invoke()方法的使用及代码示例

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

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

RubyClass.invoke介绍

[英]This method is deprecated because it depends on having a Ruby frame pushed for checking method visibility, and there's no way to enforce that. Most users of this method probably don't need to check visibility. See https://github.com/jruby/jruby/issues/4134
[中]这种方法不受欢迎,因为它依赖于推送一个Ruby框架来检查方法的可见性,而且没有办法强制执行。这种方法的大多数用户可能不需要检查可见性。看见https://github.com/jruby/jruby/issues/4134

代码示例

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

@Deprecated
public IRubyObject invoke(ThreadContext context, IRubyObject self, int methodIndex, String name, IRubyObject[] args, CallType callType, Block block) {
  return invoke(context, self, name, args, callType, block);
}

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

@Deprecated
public IRubyObject invoke(ThreadContext context, IRubyObject self, int methodIndex, String name, IRubyObject[] args, CallType callType, Block block) {
  return invoke(context, self, name, args, callType, block);
}

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

@Deprecated
public IRubyObject invoke(ThreadContext context, IRubyObject self, int methodIndex, String name, IRubyObject[] args, CallType callType, Block block) {
  return invoke(context, self, name, args, callType, block);
}

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

@Deprecated
public IRubyObject invoke(ThreadContext context, IRubyObject self, int methodIndex, String name, IRubyObject[] args, CallType callType, Block block) {
  return invoke(context, self, name, args, callType, block);
}

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

/**
 * This method is deprecated because it depends on having a Ruby frame pushed for checking method visibility,
 * and there's no way to enforce that. Most users of this method probably don't need to check visibility.
 *
 * See https://github.com/jruby/jruby/issues/4134
 *
 * @deprecated Use finvoke if you do not want visibility-checking or invokeFrom if you do.
 */
public static IRubyObject invoke(ThreadContext context, IRubyObject self, String name, IRubyObject arg, CallType callType, Block block) {
  return self.getMetaClass().invoke(context, self, name, arg, callType, block);
}

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

/**
 * This method is deprecated because it depends on having a Ruby frame pushed for checking method visibility,
 * and there's no way to enforce that. Most users of this method probably don't need to check visibility.
 *
 * See https://github.com/jruby/jruby/issues/4134
 *
 * @deprecated Use finvoke if you do not want visibility-checking or invokeFrom if you do.
 */
public static IRubyObject invoke(ThreadContext context, IRubyObject self, String name, IRubyObject[] args, CallType callType, Block block) {
  return self.getMetaClass().invoke(context, self, name, args, callType, block);
}

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

/**
 * This method is deprecated because it depends on having a Ruby frame pushed for checking method visibility,
 * and there's no way to enforce that. Most users of this method probably don't need to check visibility.
 *
 * See https://github.com/jruby/jruby/issues/4134
 *
 * @deprecated Use finvoke if you do not want visibility-checking or invokeFrom if you do.
 */
public static IRubyObject invoke(ThreadContext context, IRubyObject self, String name, IRubyObject[] args, CallType callType, Block block) {
  return self.getMetaClass().invoke(context, self, name, args, callType, block);
}

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

/**
 * This method is deprecated because it depends on having a Ruby frame pushed for checking method visibility,
 * and there's no way to enforce that. Most users of this method probably don't need to check visibility.
 *
 * See https://github.com/jruby/jruby/issues/4134
 *
 * @deprecated Use finvoke if you do not want visibility-checking or invokeFrom if you do.
 */
public static IRubyObject invoke(ThreadContext context, IRubyObject self, String name, IRubyObject arg, CallType callType, Block block) {
  return self.getMetaClass().invoke(context, self, name, arg, callType, block);
}

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

public static IRubyObject invokeSelfSimple(String name, ThreadContext context, IRubyObject self, IRubyObject arg0, IRubyObject arg1, Block block) throws Throwable {
  // TODO: literal block wrapper for break, etc
  return self.getMetaClass().invoke(context, self, name, arg0, arg1, CallType.FUNCTIONAL);
}

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

public static IRubyObject invokeSelfSimple(String name, ThreadContext context, IRubyObject self, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2, Block block) throws Throwable {
  // TODO: literal block wrapper for break, etc
  return self.getMetaClass().invoke(context, self, name, arg0, arg1, arg2, CallType.FUNCTIONAL);
}

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

public static IRubyObject invokeSelfSimple(String name, ThreadContext context, IRubyObject self, Block block) throws Throwable {
  // TODO: literal block wrapper for break, etc
  return self.getMetaClass().invoke(context, self, name, CallType.FUNCTIONAL);
}

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

public static IRubyObject invokeSelfSimple(String name, ThreadContext context, IRubyObject self, IRubyObject arg0, IRubyObject arg1, Block block) throws Throwable {
  // TODO: literal block wrapper for break, etc
  return self.getMetaClass().invoke(context, self, name, arg0, arg1, CallType.FUNCTIONAL);
}

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

public static IRubyObject invokeSelfSimple(String name, ThreadContext context, IRubyObject self, IRubyObject arg0, Block block) throws Throwable {
  // TODO: literal block wrapper for break, etc
  return self.getMetaClass().invoke(context, self, name, arg0, CallType.FUNCTIONAL);
}

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

public static IRubyObject invokeSelfSimple(String name, ThreadContext context, IRubyObject self, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2, Block block) throws Throwable {
  // TODO: literal block wrapper for break, etc
  return self.getMetaClass().invoke(context, self, name, arg0, arg1, arg2, CallType.FUNCTIONAL);
}

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

public static IRubyObject invokeSelfSimple(String name, ThreadContext context, IRubyObject self, Block block) throws Throwable {
  // TODO: literal block wrapper for break, etc
  return self.getMetaClass().invoke(context, self, name, CallType.FUNCTIONAL);
}

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

public static IRubyObject invokeSelfSimple(String name, ThreadContext context, IRubyObject self, IRubyObject arg0, Block block) throws Throwable {
  // TODO: literal block wrapper for break, etc
  return self.getMetaClass().invoke(context, self, name, arg0, CallType.FUNCTIONAL);
}

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

public static IRubyObject invokeSelfSimple(String name, ThreadContext context, IRubyObject self) {
  return self.getMetaClass().invoke(context, self, name, CallType.FUNCTIONAL);
}

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

public static IRubyObject invokeSelfSimple(String name, ThreadContext context, IRubyObject self, IRubyObject arg0, IRubyObject arg1) {
  return self.getMetaClass().invoke(context, self, name, arg0, arg1, CallType.FUNCTIONAL);
}

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

public static IRubyObject invoke(ThreadContext context, IRubyObject self, String name, IRubyObject arg, CallType callType, Block block) {
  return self.getMetaClass().invoke(context, self, name, arg, callType, block);
}

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

public static IRubyObject invokeSelfSimple(String name, ThreadContext context, IRubyObject self, IRubyObject arg0) {
  return self.getMetaClass().invoke(context, self, name, arg0, CallType.FUNCTIONAL);
}

相关文章

微信公众号

最新文章

更多

RubyClass类方法