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

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

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

RubyClass.finvoke介绍

[英]Safely attempt to invoke the given method name on self, using respond_to? and method_missing as appropriate. MRI: rb_check_funcall
[中]安全地尝试在self上调用给定的方法名,使用respond_to?和方法_缺失(视情况而定)。核磁共振成像:rb_check_funcall

代码示例

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

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

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

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

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

public static IRubyObject invoke(ThreadContext context, IRubyObject self, String name, IRubyObject arg0, Block block) {
  return self.getMetaClass().finvoke(context, self, name, arg0, block);
}
public static IRubyObject invoke(ThreadContext context, IRubyObject self, String name, IRubyObject arg0, IRubyObject arg1, Block block) {

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

public IRubyObject send(ThreadContext context, IRubyObject arg0, Block block) {
  String name = RubySymbol.objectToSymbolString(arg0);
  return getMetaClass().finvoke(context, this, name, block);
}
public IRubyObject send(ThreadContext context, IRubyObject arg0, IRubyObject arg1, Block block) {

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

public IRubyObject send(ThreadContext context, IRubyObject arg0, IRubyObject arg1, Block block) {
  String name = RubySymbol.objectToSymbolString(arg0);
  return getMetaClass().finvoke(context, this, name, arg1, block);
}
public IRubyObject send(ThreadContext context, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2, Block block) {

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

public IRubyObject send(ThreadContext context, IRubyObject arg0, IRubyObject arg1, Block block) {
  String name = RubySymbol.objectToSymbolString(arg0);
  return getMetaClass().finvoke(context, this, name, arg1, block);
}
public IRubyObject send(ThreadContext context, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2, Block block) {

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

public IRubyObject send(ThreadContext context, IRubyObject arg0, Block block) {
  String name = RubySymbol.objectToSymbolString(arg0);
  return getMetaClass().finvoke(context, this, name, block);
}
public IRubyObject send(ThreadContext context, IRubyObject arg0, IRubyObject arg1, Block block) {

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

public IRubyObject send(ThreadContext context, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2, Block block) {
  String name = RubySymbol.objectToSymbolString(arg0);
  return getMetaClass().finvoke(context, this, name, arg1, arg2, block);
}
public IRubyObject send(ThreadContext context, IRubyObject[] args, Block block) {

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

public IRubyObject send(ThreadContext context, IRubyObject[] args, Block block) {
  if (args.length == 0) return send(context, block);
  
  String name = RubySymbol.objectToSymbolString(args[0]);
  int newArgsLength = args.length - 1;
  IRubyObject[] newArgs;
  if (newArgsLength == 0) {
    newArgs = IRubyObject.NULL_ARRAY;
  } else {
    newArgs = new IRubyObject[newArgsLength];
    System.arraycopy(args, 1, newArgs, 0, newArgs.length);
  }
  return getMetaClass().finvoke(context, this, name, newArgs, block);
}

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

@JRubyMethod(name = "__send__", omit = true)
public IRubyObject send(ThreadContext context, IRubyObject arg0, Block block) {
  String name = RubySymbol.objectToSymbolString(arg0);
  return getMetaClass().finvoke(context, this, name, block);
}
@JRubyMethod(name = "__send__", omit = true)

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

@JRubyMethod(name = "__send__", omit = true)
public IRubyObject send(ThreadContext context, IRubyObject arg0, IRubyObject arg1, Block block) {
  String name = RubySymbol.objectToSymbolString(arg0);
  return getMetaClass().finvoke(context, this, name, arg1, block);
}
@JRubyMethod(name = "__send__", omit = true)

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

@JRubyMethod(name = "__send__", omit = true)
public IRubyObject send(ThreadContext context, IRubyObject arg0, Block block) {
  String name = RubySymbol.objectToSymbolString(arg0);
  return getMetaClass().finvoke(context, this, name, block);
}
@JRubyMethod(name = "__send__", omit = true)

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

@JRubyMethod(name = "__send__", omit = true)
public IRubyObject send(ThreadContext context, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2, Block block) {
  String name = RubySymbol.objectToSymbolString(arg0);
  return getMetaClass().finvoke(context, this, name, arg1, arg2, block);
}
@JRubyMethod(name = "__send__", required = 1, rest = true, omit = true)

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

@JRubyMethod(name = "__send__", omit = true)
public IRubyObject send(ThreadContext context, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2, Block block) {
  String name = RubySymbol.objectToSymbolString(arg0);
  return getMetaClass().finvoke(context, this, name, arg1, arg2, block);
}
@JRubyMethod(name = "__send__", required = 1, rest = true, omit = true)

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

@JRubyMethod(name = "__send__", compat = RUBY1_9, omit = true)
public IRubyObject send19(ThreadContext context, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2, Block block) {
  String name = RubySymbol.objectToSymbolString(arg0);
  return getMetaClass().finvoke(context, this, name, arg1, arg2, block);
}
@JRubyMethod(name = "__send__", required = 1, rest = true, compat = RUBY1_9, omit = true)

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

@JRubyMethod(name = "__send__", compat = RUBY1_9, omit = true)
public IRubyObject send19(ThreadContext context, IRubyObject arg0, Block block) {
  String name = RubySymbol.objectToSymbolString(arg0);
  return getMetaClass().finvoke(context, this, name, block);
}
@JRubyMethod(name = "__send__", compat = RUBY1_9, omit = true)

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

@JRubyMethod(name = "__send__", omit = true)
public IRubyObject send(ThreadContext context, IRubyObject arg0, IRubyObject arg1, Block block) {
  String name = RubySymbol.objectToSymbolString(arg0);
  return getMetaClass().finvoke(context, this, name, arg1, block);
}
@JRubyMethod(name = "__send__", omit = true)

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

@JRubyMethod(name = "__send__", compat = RUBY1_9, omit = true)
public IRubyObject send19(ThreadContext context, IRubyObject arg0, IRubyObject arg1, Block block) {
  String name = RubySymbol.objectToSymbolString(arg0);
  return getMetaClass().finvoke(context, this, name, arg1, block);
}
@JRubyMethod(name = "__send__", compat = RUBY1_9, omit = true)

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

@JRubyMethod(name = "__send__", required = 1, rest = true, omit = true)
public IRubyObject send(ThreadContext context, IRubyObject[] args, Block block) {
  String name = RubySymbol.objectToSymbolString(args[0]);
  final int length = args.length - 1;
  args = ( length == 0 ) ? IRubyObject.NULL_ARRAY : ArraySupport.newCopy(args, 1, length);
  return getMetaClass().finvoke(context, this, name, args, block);
}

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

@JRubyMethod(name = "__send__", required = 1, rest = true, omit = true)
public IRubyObject send(ThreadContext context, IRubyObject[] args, Block block) {
  String name = RubySymbol.objectToSymbolString(args[0]);
  final int length = args.length - 1;
  args = ( length == 0 ) ? IRubyObject.NULL_ARRAY : ArraySupport.newCopy(args, 1, length);
  return getMetaClass().finvoke(context, this, name, args, block);
}

相关文章

微信公众号

最新文章

更多

RubyClass类方法