org.jruby.Ruby.addBoundMethod()方法的使用及代码示例

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

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

Ruby.addBoundMethod介绍

暂无

代码示例

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

public void populate(RubyModule cls, Class clazz) {
  JavaMethod javaMethod;
  DynamicMethod moduleMethod;
  RubyClass singletonClass = cls.getSingletonClass();
  Ruby runtime = cls.getRuntime();
  javaMethod = new org.jruby.ext.ffi.jffi.JFFIInvoker$INVOKER$s$1$0$newInstance(singletonClass, Visibility.PUBLIC);
  populateMethod(javaMethod, 1, "newInstance", true, CallConfiguration.FrameNoneScopeNone, false, org.jruby.ext.ffi.jffi.JFFIInvoker.class, "newInstance", org.jruby.runtime.builtin.IRubyObject.class, new Class[] {org.jruby.runtime.ThreadContext.class, org.jruby.runtime.builtin.IRubyObject.class, org.jruby.runtime.builtin.IRubyObject[].class});
  singletonClass.addMethodAtBootTimeOnly("new", javaMethod);
  runtime.addBoundMethod("org.jruby.ext.ffi.jffi.JFFIInvoker","newInstance","new");
}
static {

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

public void populate(RubyModule cls, Class clazz) {
  JavaMethod javaMethod;
  DynamicMethod moduleMethod;
  Ruby runtime = cls.getRuntime();
  javaMethod = new org.jruby.RubyGlobal$CaseInsensitiveStringOnlyRubyHash$INVOKER$i$0$0$to_s(cls, Visibility.PUBLIC);
  populateMethod(javaMethod, 0, "to_s", false, CallConfiguration.FrameNoneScopeNone, false, org.jruby.RubyGlobal.CaseInsensitiveStringOnlyRubyHash.class, "to_s", org.jruby.runtime.builtin.IRubyObject.class, new Class[] {});
  cls.addMethodAtBootTimeOnly("to_s", javaMethod);
  runtime.addBoundMethod("org.jruby.RubyGlobal.CaseInsensitiveStringOnlyRubyHash","to_s","to_s");
}
static {

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

public void populate(RubyModule cls, Class clazz) {
  JavaMethod javaMethod;
  DynamicMethod moduleMethod;
  RubyClass singletonClass = cls.getSingletonClass();
  Ruby runtime = cls.getRuntime();
  javaMethod = new org.jruby.ext.socket.RubyTCPSocket$INVOKER$s$1$0$gethostbyname(singletonClass, Visibility.PUBLIC);
  populateMethod(javaMethod, 1, "gethostbyname", true, CallConfiguration.FrameNoneScopeNone, false, org.jruby.ext.socket.RubyTCPSocket.class, "gethostbyname", org.jruby.runtime.builtin.IRubyObject.class, new Class[] {org.jruby.runtime.ThreadContext.class, org.jruby.runtime.builtin.IRubyObject.class, org.jruby.runtime.builtin.IRubyObject.class});
  singletonClass.addMethodAtBootTimeOnly("gethostbyname", javaMethod);
  runtime.addBoundMethod("org.jruby.ext.socket.RubyTCPSocket","gethostbyname","gethostbyname");
  javaMethod = new org.jruby.ext.socket.RubyTCPSocket$INVOKER$i$0$2$initialize(cls, Visibility.PRIVATE);
  populateMethod(javaMethod, -1, "initialize", false, CallConfiguration.FrameNoneScopeNone, false, org.jruby.ext.socket.RubyTCPSocket.class, "initialize", org.jruby.runtime.builtin.IRubyObject.class, new Class[] {org.jruby.runtime.ThreadContext.class, org.jruby.runtime.builtin.IRubyObject[].class});
  cls.addMethodAtBootTimeOnly("initialize", javaMethod);
  runtime.addBoundMethod("org.jruby.ext.socket.RubyTCPSocket","initialize","initialize");
}
static {

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

public void populate(RubyModule cls, Class clazz) {
  JavaMethod javaMethod;
  DynamicMethod moduleMethod;
  Ruby runtime = cls.getRuntime();
  javaMethod = new org.jruby.javasupport.Java$NewStyleExtensionInherited$INVOKER$s$1$0$inherited(cls, Visibility.PUBLIC);
  populateMethod(javaMethod, 1, "inherited", true, CallConfiguration.FrameNoneScopeNone, false, org.jruby.javasupport.Java.NewStyleExtensionInherited.class, "inherited", org.jruby.runtime.builtin.IRubyObject.class, new Class[] {org.jruby.runtime.builtin.IRubyObject.class, org.jruby.runtime.builtin.IRubyObject.class});
  cls.addMethodAtBootTimeOnly("inherited", javaMethod);
  runtime.addBoundMethod("org.jruby.javasupport.Java.NewStyleExtensionInherited","inherited","inherited");
}
static {

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

public void populate(RubyModule cls, Class clazz) {
  JavaMethod javaMethod;
  DynamicMethod moduleMethod;
  RubyClass singletonClass = cls.getSingletonClass();
  Ruby runtime = cls.getRuntime();
  javaMethod = new org.jruby.ext.ffi.jffi.JFFIInvoker$INVOKER$s$1$0$newInstance(singletonClass, Visibility.PUBLIC);
  populateMethod(javaMethod, 1, "newInstance", true, CallConfiguration.FrameNoneScopeNone, false, org.jruby.ext.ffi.jffi.JFFIInvoker.class, "newInstance", org.jruby.runtime.builtin.IRubyObject.class, new Class[] {org.jruby.runtime.ThreadContext.class, org.jruby.runtime.builtin.IRubyObject.class, org.jruby.runtime.builtin.IRubyObject[].class});
  singletonClass.addMethodAtBootTimeOnly("new", javaMethod);
  runtime.addBoundMethod("org.jruby.ext.ffi.jffi.JFFIInvoker","newInstance","new");
}
static {

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

public void populate(RubyModule cls, Class clazz) {
  JavaMethod javaMethod;
  DynamicMethod moduleMethod;
  Ruby runtime = cls.getRuntime();
  javaMethod = new org.jruby.ext.ffi.StructLayout$FunctionField$INVOKER$i$0$1$initialize(cls, Visibility.PRIVATE);
  populateMethod(javaMethod, -1, "initialize", false, CallConfiguration.FrameNoneScopeNone, false, org.jruby.ext.ffi.StructLayout.FunctionField.class, "initialize", org.jruby.runtime.builtin.IRubyObject.class, new Class[] {org.jruby.runtime.ThreadContext.class, org.jruby.runtime.builtin.IRubyObject[].class});
  cls.addMethodAtBootTimeOnly("initialize", javaMethod);
  runtime.addBoundMethod("org.jruby.ext.ffi.StructLayout.FunctionField","initialize","initialize");
}
static {

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

public void populate(RubyModule cls, Class clazz) {
  JavaMethod javaMethod;
  DynamicMethod moduleMethod;
  RubyClass singletonClass = cls.getSingletonClass();
  Ruby runtime = cls.getRuntime();
  javaMethod = new org.jruby.ext.digest.RubyDigest$INVOKER$s$1$0$s_hexencode(singletonClass, Visibility.PUBLIC);
  populateMethod(javaMethod, 1, "s_hexencode", true, CallConfiguration.FrameNoneScopeNone, false, org.jruby.ext.digest.RubyDigest.class, "s_hexencode", org.jruby.runtime.builtin.IRubyObject.class, new Class[] {org.jruby.runtime.builtin.IRubyObject.class, org.jruby.runtime.builtin.IRubyObject.class});
  singletonClass.addMethodAtBootTimeOnly("hexencode", javaMethod);
  runtime.addBoundMethod("org.jruby.ext.digest.RubyDigest","s_hexencode","hexencode");
}
static {

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

public void populate(RubyModule cls, Class clazz) {
  JavaMethod javaMethod;
  DynamicMethod moduleMethod;
  Ruby runtime = cls.getRuntime();
  javaMethod = new org.jruby.ext.net.protocol.NetProtocolBufferedIO$INVOKER$s$1$0$initialize(cls, Visibility.PUBLIC);
  populateMethod(javaMethod, 1, "initialize", true, CallConfiguration.FrameNoneScopeNone, false, org.jruby.ext.net.protocol.NetProtocolBufferedIO.class, "initialize", org.jruby.runtime.builtin.IRubyObject.class, new Class[] {org.jruby.runtime.builtin.IRubyObject.class, org.jruby.runtime.builtin.IRubyObject.class});
  cls.addMethodAtBootTimeOnly("initialize", javaMethod);
  runtime.addBoundMethod("org.jruby.ext.net.protocol.NetProtocolBufferedIO","initialize","initialize");
}
static {

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

public void populate(RubyModule cls, Class clazz) {
  JavaMethod javaMethod;
  DynamicMethod moduleMethod;
  RubyClass singletonClass = cls.getSingletonClass();
  Ruby runtime = cls.getRuntime();
  javaMethod = new org.jruby.ext.digest.RubyDigest$INVOKER$s$1$0$s_hexencode(singletonClass, Visibility.PUBLIC);
  populateMethod(javaMethod, 1, "s_hexencode", true, CallConfiguration.FrameNoneScopeNone, false, org.jruby.ext.digest.RubyDigest.class, "s_hexencode", org.jruby.runtime.builtin.IRubyObject.class, new Class[] {org.jruby.runtime.builtin.IRubyObject.class, org.jruby.runtime.builtin.IRubyObject.class});
  singletonClass.addMethodAtBootTimeOnly("hexencode", javaMethod);
  runtime.addBoundMethod("org.jruby.ext.digest.RubyDigest","s_hexencode","hexencode");
}
static {

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

public void populate(RubyModule cls, Class clazz) {
  JavaMethod javaMethod;
  DynamicMethod moduleMethod;
  Ruby runtime = cls.getRuntime();
  javaMethod = new org.jruby.ext.ffi.StructLayout$ArrayField$INVOKER$i$0$1$initialize(cls, Visibility.PRIVATE);
  populateMethod(javaMethod, -1, "initialize", false, CallConfiguration.FrameNoneScopeNone, false, org.jruby.ext.ffi.StructLayout.ArrayField.class, "initialize", org.jruby.runtime.builtin.IRubyObject.class, new Class[] {org.jruby.runtime.ThreadContext.class, org.jruby.runtime.builtin.IRubyObject[].class});
  cls.addMethodAtBootTimeOnly("initialize", javaMethod);
  runtime.addBoundMethod("org.jruby.ext.ffi.StructLayout.ArrayField","initialize","initialize");
}
static {

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

public void populate(RubyModule cls, Class clazz) {
  JavaMethod javaMethod;
  DynamicMethod moduleMethod;
  RubyClass singletonClass = cls.getSingletonClass();
  Ruby runtime = cls.getRuntime();
  javaMethod = new org.jruby.ext.ffi.jffi.VariadicInvoker$INVOKER$s$0$1$newInvoker(singletonClass, Visibility.PUBLIC);
  populateMethod(javaMethod, -1, "newInvoker", true, CallConfiguration.FrameNoneScopeNone, false, org.jruby.ext.ffi.jffi.VariadicInvoker.class, "newInvoker", org.jruby.ext.ffi.jffi.VariadicInvoker.class, new Class[] {org.jruby.runtime.ThreadContext.class, org.jruby.runtime.builtin.IRubyObject.class, org.jruby.runtime.builtin.IRubyObject[].class});
  singletonClass.addMethodAtBootTimeOnly("__new", javaMethod);
  runtime.addBoundMethod("org.jruby.ext.ffi.jffi.VariadicInvoker","newInvoker","__new");
  javaMethod = new org.jruby.ext.ffi.jffi.VariadicInvoker$INVOKER$i$2$0$invoke(cls, Visibility.PUBLIC);
  populateMethod(javaMethod, 2, "invoke", false, CallConfiguration.FrameNoneScopeNone, false, org.jruby.ext.ffi.jffi.VariadicInvoker.class, "invoke", org.jruby.runtime.builtin.IRubyObject.class, new Class[] {org.jruby.runtime.ThreadContext.class, org.jruby.runtime.builtin.IRubyObject.class, org.jruby.runtime.builtin.IRubyObject.class});
  cls.addMethodAtBootTimeOnly("invoke", javaMethod);
  runtime.addBoundMethod("org.jruby.ext.ffi.jffi.VariadicInvoker","invoke","invoke");
}
static {

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

public void populate(RubyModule cls, Class clazz) {
  JavaMethod javaMethod;
  DynamicMethod moduleMethod;
  Ruby runtime = cls.getRuntime();
  javaMethod = new org.jruby.ext.ffi.StructLayout$FunctionField$INVOKER$i$0$1$initialize(cls, Visibility.PRIVATE);
  populateMethod(javaMethod, -1, "initialize", false, CallConfiguration.FrameNoneScopeNone, false, org.jruby.ext.ffi.StructLayout.FunctionField.class, "initialize", org.jruby.runtime.builtin.IRubyObject.class, new Class[] {org.jruby.runtime.ThreadContext.class, org.jruby.runtime.builtin.IRubyObject[].class});
  cls.addMethodAtBootTimeOnly("initialize", javaMethod);
  runtime.addBoundMethod("org.jruby.ext.ffi.StructLayout.FunctionField","initialize","initialize");
}
static {

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

public void populate(RubyModule cls, Class clazz) {
  JavaMethod javaMethod;
  DynamicMethod moduleMethod;
  RubyClass singletonClass = cls.getSingletonClass();
  Ruby runtime = cls.getRuntime();
  javaMethod = new org.jruby.ext.socket.RubyTCPSocket$INVOKER$s$1$0$gethostbyname(singletonClass, Visibility.PUBLIC);
  populateMethod(javaMethod, 1, "gethostbyname", true, CallConfiguration.FrameNoneScopeNone, false, org.jruby.ext.socket.RubyTCPSocket.class, "gethostbyname", org.jruby.runtime.builtin.IRubyObject.class, new Class[] {org.jruby.runtime.ThreadContext.class, org.jruby.runtime.builtin.IRubyObject.class, org.jruby.runtime.builtin.IRubyObject.class});
  singletonClass.addMethodAtBootTimeOnly("gethostbyname", javaMethod);
  runtime.addBoundMethod("org.jruby.ext.socket.RubyTCPSocket","gethostbyname","gethostbyname");
  javaMethod = new org.jruby.ext.socket.RubyTCPSocket$INVOKER$i$0$2$initialize(cls, Visibility.PRIVATE);
  populateMethod(javaMethod, -1, "initialize", false, CallConfiguration.FrameNoneScopeNone, false, org.jruby.ext.socket.RubyTCPSocket.class, "initialize", org.jruby.runtime.builtin.IRubyObject.class, new Class[] {org.jruby.runtime.ThreadContext.class, org.jruby.runtime.builtin.IRubyObject[].class});
  cls.addMethodAtBootTimeOnly("initialize", javaMethod);
  runtime.addBoundMethod("org.jruby.ext.socket.RubyTCPSocket","initialize","initialize");
}
static {

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

public void populate(RubyModule cls, Class clazz) {
  JavaMethod javaMethod;
  DynamicMethod moduleMethod;
  Ruby runtime = cls.getRuntime();
  javaMethod = new org.jruby.demo.ext.MethodMissing$INVOKER$i$0$0$method_missing(cls, Visibility.PUBLIC);
  populateMethod(javaMethod, -1, "method_missing", false, CallConfiguration.FrameNoneScopeNone, false, org.jruby.demo.ext.MethodMissing.class, "method_missing", org.jruby.runtime.builtin.IRubyObject.class, new Class[] {org.jruby.runtime.builtin.IRubyObject[].class});
  cls.addMethodAtBootTimeOnly("method_missing", javaMethod);
  runtime.addBoundMethod("org.jruby.demo.ext.MethodMissing","method_missing","method_missing");
}
static {

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

public void populate(RubyModule cls, Class clazz) {
  JavaMethod javaMethod;
  DynamicMethod moduleMethod;
  RubyClass singletonClass = cls.getSingletonClass();
  Ruby runtime = cls.getRuntime();
  javaMethod = new org.jruby.ext.ffi.jffi.VariadicInvoker$INVOKER$s$0$1$newInvoker(singletonClass, Visibility.PUBLIC);
  populateMethod(javaMethod, -1, "newInvoker", true, CallConfiguration.FrameNoneScopeNone, false, org.jruby.ext.ffi.jffi.VariadicInvoker.class, "newInvoker", org.jruby.ext.ffi.jffi.VariadicInvoker.class, new Class[] {org.jruby.runtime.ThreadContext.class, org.jruby.runtime.builtin.IRubyObject.class, org.jruby.runtime.builtin.IRubyObject[].class});
  singletonClass.addMethodAtBootTimeOnly("__new", javaMethod);
  runtime.addBoundMethod("org.jruby.ext.ffi.jffi.VariadicInvoker","newInvoker","__new");
  javaMethod = new org.jruby.ext.ffi.jffi.VariadicInvoker$INVOKER$i$2$0$invoke(cls, Visibility.PUBLIC);
  populateMethod(javaMethod, 2, "invoke", false, CallConfiguration.FrameNoneScopeNone, false, org.jruby.ext.ffi.jffi.VariadicInvoker.class, "invoke", org.jruby.runtime.builtin.IRubyObject.class, new Class[] {org.jruby.runtime.ThreadContext.class, org.jruby.runtime.builtin.IRubyObject.class, org.jruby.runtime.builtin.IRubyObject.class});
  cls.addMethodAtBootTimeOnly("invoke", javaMethod);
  runtime.addBoundMethod("org.jruby.ext.ffi.jffi.VariadicInvoker","invoke","invoke");
}
static {

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

public void populate(RubyModule cls, Class clazz) {
  JavaMethod javaMethod;
  DynamicMethod moduleMethod;
  Ruby runtime = cls.getRuntime();
  javaMethod = new org.jruby.RubyContinuation$INVOKER$i$0$0$call(cls, Visibility.PUBLIC);
  populateMethod(javaMethod, -1, "call", false, CallConfiguration.FrameNoneScopeNone, false, org.jruby.RubyContinuation.class, "call", org.jruby.runtime.builtin.IRubyObject.class, new Class[] {org.jruby.runtime.ThreadContext.class, org.jruby.runtime.builtin.IRubyObject[].class});
  cls.addMethodAtBootTimeOnly("call", javaMethod);
  cls.addMethodAtBootTimeOnly("[]", javaMethod);
  runtime.addBoundMethod("org.jruby.RubyContinuation","call","call");
}
static {

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

public void populate(RubyModule cls, Class clazz) {
  JavaMethod javaMethod;
  DynamicMethod moduleMethod;
  RubyClass singletonClass = cls.getSingletonClass();
  Ruby runtime = cls.getRuntime();
  javaMethod = new org.jruby.ext.digest.RubyDigest$DigestClass$INVOKER$s$0$0$s_digest(singletonClass, Visibility.PUBLIC);
  populateMethod(javaMethod, -1, "s_digest", true, CallConfiguration.FrameNoneScopeNone, false, org.jruby.ext.digest.RubyDigest.DigestClass.class, "s_digest", org.jruby.runtime.builtin.IRubyObject.class, new Class[] {org.jruby.runtime.ThreadContext.class, org.jruby.runtime.builtin.IRubyObject.class, org.jruby.runtime.builtin.IRubyObject[].class, org.jruby.runtime.Block.class});
  singletonClass.addMethodAtBootTimeOnly("digest", javaMethod);
  javaMethod = new org.jruby.ext.digest.RubyDigest$DigestClass$INVOKER$s$0$1$s_hexdigest(singletonClass, Visibility.PUBLIC);
  populateMethod(javaMethod, -1, "s_hexdigest", true, CallConfiguration.FrameNoneScopeNone, false, org.jruby.ext.digest.RubyDigest.DigestClass.class, "s_hexdigest", org.jruby.runtime.builtin.IRubyObject.class, new Class[] {org.jruby.runtime.ThreadContext.class, org.jruby.runtime.builtin.IRubyObject.class, org.jruby.runtime.builtin.IRubyObject[].class, org.jruby.runtime.Block.class});
  singletonClass.addMethodAtBootTimeOnly("hexdigest", javaMethod);
  runtime.addBoundMethod("org.jruby.ext.digest.RubyDigest.DigestClass","s_digest","digest");
  runtime.addBoundMethod("org.jruby.ext.digest.RubyDigest.DigestClass","s_hexdigest","hexdigest");
}
static {

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

public void populate(RubyModule cls, Class clazz) {
  JavaMethod javaMethod;
  DynamicMethod moduleMethod;
  Ruby runtime = cls.getRuntime();
  javaMethod = new org.jruby.ext.timeout.Timeout$TimeoutToplevel$INVOKER$s$0$1$timeout(cls, Visibility.PRIVATE);
  populateMethod(javaMethod, -1, "timeout", true, CallConfiguration.FrameNoneScopeNone, false, org.jruby.ext.timeout.Timeout.TimeoutToplevel.class, "timeout", org.jruby.runtime.builtin.IRubyObject.class, new Class[] {org.jruby.runtime.ThreadContext.class, org.jruby.runtime.builtin.IRubyObject.class, org.jruby.runtime.builtin.IRubyObject[].class, org.jruby.runtime.Block.class});
  cls.addMethodAtBootTimeOnly("timeout", javaMethod);
  runtime.addBoundMethod("org.jruby.ext.timeout.Timeout.TimeoutToplevel","timeout","timeout");
}
static {

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

public void populate(RubyModule cls, Class clazz) {
  JavaMethod javaMethod;
  DynamicMethod moduleMethod;
  RubyClass singletonClass = cls.getSingletonClass();
  Ruby runtime = cls.getRuntime();
  javaMethod = new org.jruby.ext.jruby.JRubyTypeLibrary$INVOKER$s$3$0$coerce_to(cls, Visibility.PUBLIC);
  populateMethod(javaMethod, 3, "coerce_to", true, CallConfiguration.FrameNoneScopeNone, false, org.jruby.ext.jruby.JRubyTypeLibrary.class, "coerce_to", org.jruby.runtime.builtin.IRubyObject.class, new Class[] {org.jruby.runtime.ThreadContext.class, org.jruby.runtime.builtin.IRubyObject.class, org.jruby.runtime.builtin.IRubyObject.class, org.jruby.runtime.builtin.IRubyObject.class, org.jruby.runtime.builtin.IRubyObject.class});
  cls.addMethodAtBootTimeOnly("coerce_to", javaMethod);
  moduleMethod = populateModuleMethod(cls, javaMethod);
  singletonClass.addMethodAtBootTimeOnly("coerce_to", moduleMethod);
  runtime.addBoundMethod("org.jruby.ext.jruby.JRubyTypeLibrary","coerce_to","coerce_to");
}
static {

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

public void populate(RubyModule cls, Class clazz) {
  JavaMethod javaMethod;
  DynamicMethod moduleMethod;
  Ruby runtime = cls.getRuntime();
  javaMethod = new org.jruby.ext.jruby.JRubyFiberLocal$INVOKER$i$1$0$withValue(cls, Visibility.PUBLIC);
  populateMethod(javaMethod, 1, "withValue", false, CallConfiguration.FrameNoneScopeNone, false, org.jruby.ext.jruby.JRubyFiberLocal.class, "withValue", org.jruby.runtime.builtin.IRubyObject.class, new Class[] {org.jruby.runtime.ThreadContext.class, org.jruby.runtime.builtin.IRubyObject.class, org.jruby.runtime.Block.class});
  cls.addMethodAtBootTimeOnly("with_value", javaMethod);
  runtime.addBoundMethod("org.jruby.ext.jruby.JRubyFiberLocal","withValue","with_value");
}
static {

相关文章

Ruby类方法