Ruby runtime = cls.getRuntime(); javaMethod = new org.jruby.RubyProc$INVOKER$s$0$0$newInstance(singletonClass, Visibility.PUBLIC); populateMethod(javaMethod, -1, "newInstance", true, CallConfiguration.FrameNoneScopeNone, false, org.jruby.RubyProc.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, org.jruby.runtime.Block.class}); singletonClass.addMethodAtBootTimeOnly("new", javaMethod); runtime.addBoundMethod("org.jruby.RubyProc","newInstance","new"); javaMethod = new org.jruby.RubyProc$INVOKER$i$0$0$arity(cls, Visibility.PUBLIC); populateMethod(javaMethod, 0, "arity", false, CallConfiguration.FrameNoneScopeNone, false, org.jruby.RubyProc.class, "arity", org.jruby.RubyFixnum.class, new Class[] {}); cls.addMethodAtBootTimeOnly("arity", javaMethod); javaMethod = new org.jruby.RubyProc$INVOKER$i$0$0$rbClone(cls, Visibility.PUBLIC); populateMethod(javaMethod, 0, "rbClone", false, CallConfiguration.FrameNoneScopeNone, false, org.jruby.RubyProc.class, "rbClone", org.jruby.runtime.builtin.IRubyObject.class, new Class[] {}); cls.addMethodAtBootTimeOnly("clone", javaMethod); javaMethod = new org.jruby.RubyProc$INVOKER$i$0$0$dup(cls, Visibility.PUBLIC); populateMethod(javaMethod, 0, "dup", false, CallConfiguration.FrameNoneScopeNone, false, org.jruby.RubyProc.class, "dup", org.jruby.runtime.builtin.IRubyObject.class, new Class[] {}); cls.addMethodAtBootTimeOnly("dup", javaMethod); javaMethod = new org.jruby.RubyProc$INVOKER$i$0$0$to_proc(cls, Visibility.PUBLIC); populateMethod(javaMethod, 0, "to_proc", false, CallConfiguration.FrameNoneScopeNone, false, org.jruby.RubyProc.class, "to_proc", org.jruby.RubyProc.class, new Class[] {}); cls.addMethodAtBootTimeOnly("to_proc", javaMethod); javaMethod = new org.jruby.RubyProc$INVOKER$i$1$0$op_equal(cls, Visibility.PUBLIC); populateMethod(javaMethod, 1, "op_equal", false, CallConfiguration.FrameNoneScopeNone, false, org.jruby.RubyProc.class, "op_equal", org.jruby.runtime.builtin.IRubyObject.class, new Class[] {org.jruby.runtime.builtin.IRubyObject.class}); cls.addMethodAtBootTimeOnly("==", javaMethod); javaMethod = new org.jruby.RubyProc$INVOKER$i$0$0$binding(cls, Visibility.PUBLIC); populateMethod(javaMethod, 0, "binding", false, CallConfiguration.FrameNoneScopeNone, false, org.jruby.RubyProc.class, "binding", org.jruby.runtime.builtin.IRubyObject.class, new Class[] {}); cls.addMethodAtBootTimeOnly("binding", javaMethod); runtime.addBoundMethod("org.jruby.RubyProc","arity","arity"); if (compatVersion == CompatVersion.RUBY1_8 || compatVersion == CompatVersion.BOTH) { javaMethod = new org.jruby.RubyProc$INVOKER$i$0$0$call(cls, Visibility.PUBLIC); populateMethod(javaMethod, -1, "call", false, CallConfiguration.FrameNoneScopeNone, false, org.jruby.RubyProc.class, "call", 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("call", javaMethod);
Ruby runtime = cls.getRuntime(); javaMethod = new org.jruby.RubyProc$INVOKER$s$0$0$newInstance(singletonClass, Visibility.PUBLIC); populateMethod(javaMethod, -1, "newInstance", true, CallConfiguration.FrameNoneScopeNone, false, org.jruby.RubyProc.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, org.jruby.runtime.Block.class}); singletonClass.addMethodAtBootTimeOnly("new", javaMethod); runtime.addBoundMethod("org.jruby.RubyProc","newInstance","new"); javaMethod = new org.jruby.RubyProc$INVOKER$i$0$0$arity(cls, Visibility.PUBLIC); populateMethod(javaMethod, 0, "arity", false, CallConfiguration.FrameNoneScopeNone, false, org.jruby.RubyProc.class, "arity", org.jruby.RubyFixnum.class, new Class[] {}); cls.addMethodAtBootTimeOnly("arity", javaMethod); javaMethod = new org.jruby.RubyProc$INVOKER$i$0$0$rbClone(cls, Visibility.PUBLIC); populateMethod(javaMethod, 0, "rbClone", false, CallConfiguration.FrameNoneScopeNone, false, org.jruby.RubyProc.class, "rbClone", org.jruby.runtime.builtin.IRubyObject.class, new Class[] {}); cls.addMethodAtBootTimeOnly("clone", javaMethod); javaMethod = new org.jruby.RubyProc$INVOKER$i$0$0$dup(cls, Visibility.PUBLIC); populateMethod(javaMethod, 0, "dup", false, CallConfiguration.FrameNoneScopeNone, false, org.jruby.RubyProc.class, "dup", org.jruby.runtime.builtin.IRubyObject.class, new Class[] {}); cls.addMethodAtBootTimeOnly("dup", javaMethod); javaMethod = new org.jruby.RubyProc$INVOKER$i$0$0$to_proc(cls, Visibility.PUBLIC); populateMethod(javaMethod, 0, "to_proc", false, CallConfiguration.FrameNoneScopeNone, false, org.jruby.RubyProc.class, "to_proc", org.jruby.RubyProc.class, new Class[] {}); cls.addMethodAtBootTimeOnly("to_proc", javaMethod); javaMethod = new org.jruby.RubyProc$INVOKER$i$1$0$op_equal(cls, Visibility.PUBLIC); populateMethod(javaMethod, 1, "op_equal", false, CallConfiguration.FrameNoneScopeNone, false, org.jruby.RubyProc.class, "op_equal", org.jruby.runtime.builtin.IRubyObject.class, new Class[] {org.jruby.runtime.builtin.IRubyObject.class}); cls.addMethodAtBootTimeOnly("==", javaMethod); javaMethod = new org.jruby.RubyProc$INVOKER$i$0$0$binding(cls, Visibility.PUBLIC); populateMethod(javaMethod, 0, "binding", false, CallConfiguration.FrameNoneScopeNone, false, org.jruby.RubyProc.class, "binding", org.jruby.runtime.builtin.IRubyObject.class, new Class[] {}); cls.addMethodAtBootTimeOnly("binding", javaMethod); runtime.addBoundMethod("org.jruby.RubyProc","arity","arity"); if (compatVersion == CompatVersion.RUBY1_8 || compatVersion == CompatVersion.BOTH) { javaMethod = new org.jruby.RubyProc$INVOKER$i$0$0$call(cls, Visibility.PUBLIC); populateMethod(javaMethod, -1, "call", false, CallConfiguration.FrameNoneScopeNone, false, org.jruby.RubyProc.class, "call", 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("call", javaMethod);
Ruby runtime = cls.getRuntime(); javaMethod = new org.jruby.RubyProc$INVOKER$s$0$0$newInstance(singletonClass, Visibility.PUBLIC, "new"); populateMethod(javaMethod, -1, "newInstance", true, false, org.jruby.RubyProc.class, "newInstance", org.jruby.runtime.builtin.IRubyObject.class, CONTEXT_ARG1_ARY_BLOCK); aliasedMethod = singletonClass.putMethod(runtime, "new", javaMethod); javaMethod = new org.jruby.RubyProc$INVOKER$i$0$0$call(cls, Visibility.PUBLIC, "call"); populateMethod(javaMethod, -1, "call", false, false, org.jruby.RubyProc.class, "call", org.jruby.runtime.builtin.IRubyObject.class, CONTEXT_ARG0_ARY_BLOCK); aliasedMethod = cls.putMethod(runtime, "call", javaMethod); cls.putMethod(runtime, "[]", javaMethod); cls.putMethod(runtime, "===", javaMethod); javaMethod = new org.jruby.RubyProc$INVOKER$i$0$0$arity(cls, Visibility.PUBLIC, "arity"); populateMethod(javaMethod, 0, "arity", false, false, org.jruby.RubyProc.class, "arity", org.jruby.RubyFixnum.class, ARG0); aliasedMethod = cls.putMethod(runtime, "arity", javaMethod); javaMethod = new org.jruby.RubyProc$INVOKER$i$0$0$to_proc(cls, Visibility.PUBLIC, "to_proc"); populateMethod(javaMethod, 0, "to_proc", false, false, org.jruby.RubyProc.class, "to_proc", org.jruby.RubyProc.class, ARG0); aliasedMethod = cls.putMethod(runtime, "to_proc", javaMethod); javaMethod = new org.jruby.RubyProc$INVOKER$i$0$0$rbClone(cls, Visibility.PUBLIC, "clone"); populateMethod(javaMethod, 0, "rbClone", false, false, org.jruby.RubyProc.class, "rbClone", org.jruby.runtime.builtin.IRubyObject.class, ARG0); aliasedMethod = cls.putMethod(runtime, "clone", javaMethod); javaMethod = new org.jruby.RubyProc$INVOKER$i$0$0$to_s(cls, Visibility.PUBLIC, "to_s"); populateMethod(javaMethod, 0, "to_s", false, false, org.jruby.RubyProc.class, "to_s", org.jruby.runtime.builtin.IRubyObject.class, ARG0); aliasedMethod = cls.putMethod(runtime, "to_s", javaMethod); cls.putAlias("inspect", aliasedMethod, "to_s"); javaMethod = new org.jruby.RubyProc$INVOKER$i$0$0$binding(cls, Visibility.PUBLIC, "binding"); populateMethod(javaMethod, 0, "binding", false, false, org.jruby.RubyProc.class, "binding", org.jruby.runtime.builtin.IRubyObject.class, ARG0); aliasedMethod = cls.putMethod(runtime, "binding", javaMethod); javaMethod = new org.jruby.RubyProc$INVOKER$i$0$0$source_location(cls, Visibility.PUBLIC, "source_location"); populateMethod(javaMethod, 0, "source_location", false, false, org.jruby.RubyProc.class, "source_location", org.jruby.runtime.builtin.IRubyObject.class, CONTEXT_ARG0); aliasedMethod = cls.putMethod(runtime, "source_location", javaMethod);
Ruby runtime = cls.getRuntime(); javaMethod = new org.jruby.RubyProc$INVOKER$s$0$0$newInstance(singletonClass, Visibility.PUBLIC, "new"); populateMethod(javaMethod, -1, "newInstance", true, false, org.jruby.RubyProc.class, "newInstance", org.jruby.runtime.builtin.IRubyObject.class, CONTEXT_ARG1_ARY_BLOCK); aliasedMethod = singletonClass.putMethod(runtime, "new", javaMethod); javaMethod = new org.jruby.RubyProc$INVOKER$i$0$0$call(cls, Visibility.PUBLIC, "call"); populateMethod(javaMethod, -1, "call", false, false, org.jruby.RubyProc.class, "call", org.jruby.runtime.builtin.IRubyObject.class, CONTEXT_ARG0_ARY_BLOCK); aliasedMethod = cls.putMethod(runtime, "call", javaMethod); cls.putMethod(runtime, "[]", javaMethod); cls.putMethod(runtime, "===", javaMethod); javaMethod = new org.jruby.RubyProc$INVOKER$i$0$0$arity(cls, Visibility.PUBLIC, "arity"); populateMethod(javaMethod, 0, "arity", false, false, org.jruby.RubyProc.class, "arity", org.jruby.RubyFixnum.class, ARG0); aliasedMethod = cls.putMethod(runtime, "arity", javaMethod); javaMethod = new org.jruby.RubyProc$INVOKER$i$0$0$to_proc(cls, Visibility.PUBLIC, "to_proc"); populateMethod(javaMethod, 0, "to_proc", false, false, org.jruby.RubyProc.class, "to_proc", org.jruby.RubyProc.class, ARG0); aliasedMethod = cls.putMethod(runtime, "to_proc", javaMethod); javaMethod = new org.jruby.RubyProc$INVOKER$i$0$0$rbClone(cls, Visibility.PUBLIC, "clone"); populateMethod(javaMethod, 0, "rbClone", false, false, org.jruby.RubyProc.class, "rbClone", org.jruby.runtime.builtin.IRubyObject.class, ARG0); aliasedMethod = cls.putMethod(runtime, "clone", javaMethod); javaMethod = new org.jruby.RubyProc$INVOKER$i$0$0$to_s(cls, Visibility.PUBLIC, "to_s"); populateMethod(javaMethod, 0, "to_s", false, false, org.jruby.RubyProc.class, "to_s", org.jruby.runtime.builtin.IRubyObject.class, ARG0); aliasedMethod = cls.putMethod(runtime, "to_s", javaMethod); cls.putAlias("inspect", aliasedMethod, "to_s"); javaMethod = new org.jruby.RubyProc$INVOKER$i$0$0$binding(cls, Visibility.PUBLIC, "binding"); populateMethod(javaMethod, 0, "binding", false, false, org.jruby.RubyProc.class, "binding", org.jruby.runtime.builtin.IRubyObject.class, ARG0); aliasedMethod = cls.putMethod(runtime, "binding", javaMethod); javaMethod = new org.jruby.RubyProc$INVOKER$i$0$0$source_location(cls, Visibility.PUBLIC, "source_location"); populateMethod(javaMethod, 0, "source_location", false, false, org.jruby.RubyProc.class, "source_location", org.jruby.runtime.builtin.IRubyObject.class, CONTEXT_ARG0); aliasedMethod = cls.putMethod(runtime, "source_location", javaMethod);