Ruby runtime = cls.getRuntime(); javaMethod = new org.jruby.RubyIO$INVOKER$s$0$0$open(singletonClass, Visibility.PUBLIC); populateMethod(javaMethod, -1, "open", true, CallConfiguration.FrameNoneScopeNone, false, org.jruby.RubyIO.class, "open", 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("open", javaMethod); javaMethod = new org.jruby.RubyIO$INVOKER$s$0$0$newInstance(singletonClass, Visibility.PUBLIC); populateMethod(javaMethod, -1, "newInstance", true, CallConfiguration.FrameNoneScopeNone, false, org.jruby.RubyIO.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); singletonClass.addMethodAtBootTimeOnly("for_fd", javaMethod); javaMethod = new org.jruby.RubyIO$INVOKER$s$0$3$select(singletonClass, Visibility.PUBLIC); populateMethod(javaMethod, -1, "select", true, CallConfiguration.FrameNoneScopeNone, false, org.jruby.RubyIO.class, "select", 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("select", javaMethod); javaMethod = new org.jruby.RubyIO$INVOKER$s$0$0$popen4(singletonClass, Visibility.PUBLIC); populateMethod(javaMethod, -1, "popen4", true, CallConfiguration.FrameNoneScopeNone, false, org.jruby.RubyIO.class, "popen4", 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("popen4", javaMethod); runtime.addBoundMethod("org.jruby.RubyIO","open","open"); if (compatVersion == CompatVersion.RUBY1_8 || compatVersion == CompatVersion.BOTH) { javaMethod = new org.jruby.RubyIO$INVOKER$s$0$1$foreach(singletonClass, Visibility.PUBLIC); populateMethod(javaMethod, -1, "foreach", true, CallConfiguration.FrameNoneScopeNone, false, org.jruby.RubyIO.class, "foreach", 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("foreach", javaMethod); javaMethod = new org.jruby.RubyIO$INVOKER$s$0$2$sysopen(singletonClass, Visibility.PUBLIC); populateMethod(javaMethod, -1, "sysopen", true, CallConfiguration.FrameNoneScopeNone, false, org.jruby.RubyIO.class, "sysopen", org.jruby.runtime.builtin.IRubyObject.class, new Class[] {org.jruby.runtime.builtin.IRubyObject.class, org.jruby.runtime.builtin.IRubyObject[].class, org.jruby.runtime.Block.class}); singletonClass.addMethodAtBootTimeOnly("sysopen", javaMethod); javaMethod = new org.jruby.RubyIO$INVOKER$s$0$1$readlines(singletonClass, Visibility.PUBLIC); populateMethod(javaMethod, -1, "readlines", true, CallConfiguration.FrameNoneScopeNone, false, org.jruby.RubyIO.class, "readlines", 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("readlines", javaMethod); javaMethod = new org.jruby.RubyIO$INVOKER$s$readStatic(singletonClass, Visibility.PUBLIC); populateMethod(javaMethod, -1, "readStatic", true, CallConfiguration.FrameNoneScopeNone, false, org.jruby.RubyIO.class, "readStatic", 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("read", javaMethod);
Ruby runtime = cls.getRuntime(); javaMethod = new org.jruby.RubyIO$INVOKER$s$0$0$popen4(singletonClass, Visibility.PUBLIC); populateMethod(javaMethod, -1, "popen4", true, CallConfiguration.FrameNoneScopeNone, false, org.jruby.RubyIO.class, "popen4", 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("popen4", javaMethod); javaMethod = new org.jruby.RubyIO$INVOKER$s$0$0$newInstance(singletonClass, Visibility.PUBLIC); populateMethod(javaMethod, -1, "newInstance", true, CallConfiguration.FrameNoneScopeNone, false, org.jruby.RubyIO.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); singletonClass.addMethodAtBootTimeOnly("for_fd", javaMethod); javaMethod = new org.jruby.RubyIO$INVOKER$s$0$3$select(singletonClass, Visibility.PUBLIC); populateMethod(javaMethod, -1, "select", true, CallConfiguration.FrameNoneScopeNone, false, org.jruby.RubyIO.class, "select", 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("select", javaMethod); javaMethod = new org.jruby.RubyIO$INVOKER$s$0$0$open(singletonClass, Visibility.PUBLIC); populateMethod(javaMethod, -1, "open", true, CallConfiguration.FrameNoneScopeNone, false, org.jruby.RubyIO.class, "open", 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("open", javaMethod); runtime.addBoundMethod("org.jruby.RubyIO","popen4","popen4"); if (compatVersion == CompatVersion.RUBY1_8 || compatVersion == CompatVersion.BOTH) { javaMethod = new org.jruby.RubyIO$INVOKER$s$0$1$readlines(singletonClass, Visibility.PUBLIC); populateMethod(javaMethod, -1, "readlines", true, CallConfiguration.FrameNoneScopeNone, false, org.jruby.RubyIO.class, "readlines", 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("readlines", javaMethod); javaMethod = new org.jruby.RubyIO$INVOKER$s$readStatic(singletonClass, Visibility.PUBLIC); populateMethod(javaMethod, -1, "readStatic", true, CallConfiguration.FrameNoneScopeNone, false, org.jruby.RubyIO.class, "readStatic", 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("read", javaMethod); javaMethod = new org.jruby.RubyIO$INVOKER$s$0$2$sysopen(singletonClass, Visibility.PUBLIC); populateMethod(javaMethod, -1, "sysopen", true, CallConfiguration.FrameNoneScopeNone, false, org.jruby.RubyIO.class, "sysopen", org.jruby.runtime.builtin.IRubyObject.class, new Class[] {org.jruby.runtime.builtin.IRubyObject.class, org.jruby.runtime.builtin.IRubyObject[].class, org.jruby.runtime.Block.class}); singletonClass.addMethodAtBootTimeOnly("sysopen", javaMethod); javaMethod = new org.jruby.RubyIO$INVOKER$s$0$0$popen3(singletonClass, Visibility.PUBLIC); populateMethod(javaMethod, -1, "popen3", true, CallConfiguration.FrameNoneScopeNone, false, org.jruby.RubyIO.class, "popen3", 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("popen3", javaMethod);
Ruby runtime = cls.getRuntime(); javaMethod = new org.jruby.RubyIO$INVOKER$s$0$0$newInstance(singletonClass, Visibility.PUBLIC, "new"); populateMethod(javaMethod, -1, "newInstance", true, false, org.jruby.RubyIO.class, "newInstance", org.jruby.runtime.builtin.IRubyObject.class, CONTEXT_ARG1_ARY_BLOCK); aliasedMethod = singletonClass.putMethod(runtime, "new", javaMethod); javaMethod = new org.jruby.RubyIO$INVOKER$s$0$3$select(singletonClass, Visibility.PUBLIC, "select"); populateMethod(javaMethod, -1, "select", true, false, org.jruby.RubyIO.class, "select", org.jruby.runtime.builtin.IRubyObject.class, CONTEXT_ARG1_ARY); aliasedMethod = singletonClass.putMethod(runtime, "select", javaMethod); javaMethod = new org.jruby.RubyIO$INVOKER$s$0$3$read(singletonClass, Visibility.PUBLIC, "read"); populateMethod(javaMethod, -1, "read", true, false, org.jruby.RubyIO.class, "read", org.jruby.runtime.builtin.IRubyObject.class, CONTEXT_ARG1_ARY_BLOCK); aliasedMethod = singletonClass.putMethod(runtime, "read", javaMethod); javaMethod = new org.jruby.RubyIO$INVOKER$s$0$2$popen(singletonClass, Visibility.PUBLIC, "popen"); populateMethod(javaMethod, -1, "popen", true, false, org.jruby.RubyIO.class, "popen", org.jruby.runtime.builtin.IRubyObject.class, CONTEXT_ARG1_ARY_BLOCK); aliasedMethod = singletonClass.putMethod(runtime, "popen", javaMethod); javaMethod = new org.jruby.RubyIO$INVOKER$s$0$2$copy_stream(singletonClass, Visibility.PUBLIC, "copy_stream"); populateMethod(javaMethod, -1, "copy_stream", true, false, org.jruby.RubyIO.class, "copy_stream", org.jruby.runtime.builtin.IRubyObject.class, CONTEXT_ARG1_ARY); aliasedMethod = singletonClass.putMethod(runtime, "copy_stream", javaMethod); javaMethod = new org.jruby.RubyIO$INVOKER$s$0$2$binread(singletonClass, Visibility.PUBLIC, "binread"); populateMethod(javaMethod, -1, "binread", true, false, org.jruby.RubyIO.class, "binread", org.jruby.runtime.builtin.IRubyObject.class, CONTEXT_ARG1_ARY); aliasedMethod = singletonClass.putMethod(runtime, "binread", javaMethod); javaMethod = new org.jruby.RubyIO$INVOKER$s$0$3$foreach(singletonClass, Visibility.PUBLIC, "foreach"); populateMethod(javaMethod, -1, "foreach", true, false, org.jruby.RubyIO.class, "foreach", org.jruby.runtime.builtin.IRubyObject.class, CONTEXT_ARG1_ARY_BLOCK); aliasedMethod = singletonClass.putMethod(runtime, "foreach", javaMethod); javaMethod = new org.jruby.RubyIO$INVOKER$s$0$0$for_fd(singletonClass, Visibility.PUBLIC, "for_fd"); populateMethod(javaMethod, -1, "for_fd", true, false, org.jruby.RubyIO.class, "for_fd", org.jruby.runtime.builtin.IRubyObject.class, CONTEXT_ARG1_ARY_BLOCK); aliasedMethod = singletonClass.putMethod(runtime, "for_fd", javaMethod); javaMethod = new org.jruby.RubyIO$INVOKER$s$0$0$popen3(singletonClass, Visibility.PUBLIC, "popen3"); populateMethod(javaMethod, -1, "popen3", true, false, org.jruby.RubyIO.class, "popen3", org.jruby.runtime.builtin.IRubyObject.class, CONTEXT_ARG1_ARY_BLOCK); aliasedMethod = singletonClass.putMethod(runtime, "popen3", javaMethod); javaMethod = new org.jruby.RubyIO$INVOKER$s$0$2$sysopen(singletonClass, Visibility.PUBLIC, "sysopen");
Ruby runtime = cls.getRuntime(); javaMethod = new org.jruby.RubyIO$INVOKER$s$0$0$newInstance(singletonClass, Visibility.PUBLIC, "new"); populateMethod(javaMethod, -1, "newInstance", true, false, org.jruby.RubyIO.class, "newInstance", org.jruby.runtime.builtin.IRubyObject.class, CONTEXT_ARG1_ARY_BLOCK); aliasedMethod = singletonClass.putMethod(runtime, "new", javaMethod); javaMethod = new org.jruby.RubyIO$INVOKER$s$0$3$select(singletonClass, Visibility.PUBLIC, "select"); populateMethod(javaMethod, -1, "select", true, false, org.jruby.RubyIO.class, "select", org.jruby.runtime.builtin.IRubyObject.class, CONTEXT_ARG1_ARY); aliasedMethod = singletonClass.putMethod(runtime, "select", javaMethod); javaMethod = new org.jruby.RubyIO$INVOKER$s$0$3$read(singletonClass, Visibility.PUBLIC, "read"); populateMethod(javaMethod, -1, "read", true, false, org.jruby.RubyIO.class, "read", org.jruby.runtime.builtin.IRubyObject.class, CONTEXT_ARG1_ARY_BLOCK); aliasedMethod = singletonClass.putMethod(runtime, "read", javaMethod); javaMethod = new org.jruby.RubyIO$INVOKER$s$0$2$popen(singletonClass, Visibility.PUBLIC, "popen"); populateMethod(javaMethod, -1, "popen", true, false, org.jruby.RubyIO.class, "popen", org.jruby.runtime.builtin.IRubyObject.class, CONTEXT_ARG1_ARY_BLOCK); aliasedMethod = singletonClass.putMethod(runtime, "popen", javaMethod); javaMethod = new org.jruby.RubyIO$INVOKER$s$0$2$copy_stream(singletonClass, Visibility.PUBLIC, "copy_stream"); populateMethod(javaMethod, -1, "copy_stream", true, false, org.jruby.RubyIO.class, "copy_stream", org.jruby.runtime.builtin.IRubyObject.class, CONTEXT_ARG1_ARY); aliasedMethod = singletonClass.putMethod(runtime, "copy_stream", javaMethod); javaMethod = new org.jruby.RubyIO$INVOKER$s$0$2$binread(singletonClass, Visibility.PUBLIC, "binread"); populateMethod(javaMethod, -1, "binread", true, false, org.jruby.RubyIO.class, "binread", org.jruby.runtime.builtin.IRubyObject.class, CONTEXT_ARG1_ARY); aliasedMethod = singletonClass.putMethod(runtime, "binread", javaMethod); javaMethod = new org.jruby.RubyIO$INVOKER$s$0$3$foreach(singletonClass, Visibility.PUBLIC, "foreach"); populateMethod(javaMethod, -1, "foreach", true, false, org.jruby.RubyIO.class, "foreach", org.jruby.runtime.builtin.IRubyObject.class, CONTEXT_ARG1_ARY_BLOCK); aliasedMethod = singletonClass.putMethod(runtime, "foreach", javaMethod); javaMethod = new org.jruby.RubyIO$INVOKER$s$0$0$for_fd(singletonClass, Visibility.PUBLIC, "for_fd"); populateMethod(javaMethod, -1, "for_fd", true, false, org.jruby.RubyIO.class, "for_fd", org.jruby.runtime.builtin.IRubyObject.class, CONTEXT_ARG1_ARY_BLOCK); aliasedMethod = singletonClass.putMethod(runtime, "for_fd", javaMethod); javaMethod = new org.jruby.RubyIO$INVOKER$s$0$0$popen3(singletonClass, Visibility.PUBLIC, "popen3"); populateMethod(javaMethod, -1, "popen3", true, false, org.jruby.RubyIO.class, "popen3", org.jruby.runtime.builtin.IRubyObject.class, CONTEXT_ARG1_ARY_BLOCK); aliasedMethod = singletonClass.putMethod(runtime, "popen3", javaMethod); javaMethod = new org.jruby.RubyIO$INVOKER$s$0$2$sysopen(singletonClass, Visibility.PUBLIC, "sysopen");