Ruby runtime = cls.getRuntime(); javaMethod = new org.jruby.RubyComplex$INVOKER$s$2$0$polar(singletonClass, Visibility.PUBLIC); populateMethod(javaMethod, 2, "polar", true, CallConfiguration.FrameNoneScopeNone, false, org.jruby.RubyComplex.class, "polar", 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}); singletonClass.addMethodAtBootTimeOnly("polar", javaMethod); javaMethod = new org.jruby.RubyComplex$INVOKER$s$newInstanceBang(singletonClass, Visibility.PRIVATE); populateMethod(javaMethod, -1, "newInstanceBang", true, CallConfiguration.FrameNoneScopeNone, false, org.jruby.RubyComplex.class, "newInstanceBang", 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); javaMethod = new org.jruby.RubyComplex$INVOKER$s$convert(singletonClass, Visibility.PRIVATE); populateMethod(javaMethod, -1, "convert", true, CallConfiguration.FrameNoneScopeNone, false, org.jruby.RubyComplex.class, "convert", 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("convert", javaMethod); javaMethod = new org.jruby.RubyComplex$INVOKER$s$newInstance(singletonClass, Visibility.PUBLIC); populateMethod(javaMethod, -1, "newInstance", true, CallConfiguration.FrameNoneScopeNone, false, org.jruby.RubyComplex.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("rect", javaMethod); singletonClass.addMethodAtBootTimeOnly("rectangular", javaMethod); if (compatVersion.is1_9() || compatVersion == CompatVersion.BOTH) { javaMethod = new org.jruby.RubyComplex$INVOKER$s$0$1$polar19(singletonClass, Visibility.PUBLIC); populateMethod(javaMethod, -1, "polar19", true, CallConfiguration.FrameNoneScopeNone, false, org.jruby.RubyComplex.class, "polar19", 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("polar", javaMethod); runtime.addBoundMethod("org.jruby.RubyComplex","polar19","polar"); populateMethod(javaMethod, 0, "rect", false, CallConfiguration.FrameNoneScopeNone, false, org.jruby.RubyComplex.class, "rect", org.jruby.runtime.builtin.IRubyObject.class, new Class[] {org.jruby.runtime.ThreadContext.class}); cls.addMethodAtBootTimeOnly("rectangular", javaMethod); cls.addMethodAtBootTimeOnly("rect", javaMethod); javaMethod = new org.jruby.RubyComplex$INVOKER$i$0$0$to_f(cls, Visibility.PUBLIC); populateMethod(javaMethod, 0, "to_f", false, CallConfiguration.FrameNoneScopeNone, false, org.jruby.RubyComplex.class, "to_f", org.jruby.runtime.builtin.IRubyObject.class, new Class[] {org.jruby.runtime.ThreadContext.class}); cls.addMethodAtBootTimeOnly("to_f", javaMethod); javaMethod = new org.jruby.RubyComplex$INVOKER$i$0$0$to_i(cls, Visibility.PUBLIC); populateMethod(javaMethod, 0, "to_i", false, CallConfiguration.FrameNoneScopeNone, false, org.jruby.RubyComplex.class, "to_i", org.jruby.runtime.builtin.IRubyObject.class, new Class[] {org.jruby.runtime.ThreadContext.class});
Ruby runtime = cls.getRuntime(); javaMethod = new org.jruby.RubyComplex$INVOKER$s$2$0$polar(singletonClass, Visibility.PUBLIC); populateMethod(javaMethod, 2, "polar", true, CallConfiguration.FrameNoneScopeNone, false, org.jruby.RubyComplex.class, "polar", 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}); singletonClass.addMethodAtBootTimeOnly("polar", javaMethod); javaMethod = new org.jruby.RubyComplex$INVOKER$s$newInstanceBang(singletonClass, Visibility.PRIVATE); populateMethod(javaMethod, -1, "newInstanceBang", true, CallConfiguration.FrameNoneScopeNone, false, org.jruby.RubyComplex.class, "newInstanceBang", 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); javaMethod = new org.jruby.RubyComplex$INVOKER$s$convert(singletonClass, Visibility.PRIVATE); populateMethod(javaMethod, -1, "convert", true, CallConfiguration.FrameNoneScopeNone, false, org.jruby.RubyComplex.class, "convert", 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("convert", javaMethod); javaMethod = new org.jruby.RubyComplex$INVOKER$s$newInstance(singletonClass, Visibility.PUBLIC); populateMethod(javaMethod, -1, "newInstance", true, CallConfiguration.FrameNoneScopeNone, false, org.jruby.RubyComplex.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("rect", javaMethod); singletonClass.addMethodAtBootTimeOnly("rectangular", javaMethod); if (compatVersion.is1_9() || compatVersion == CompatVersion.BOTH) { javaMethod = new org.jruby.RubyComplex$INVOKER$s$0$1$polar19(singletonClass, Visibility.PUBLIC); populateMethod(javaMethod, -1, "polar19", true, CallConfiguration.FrameNoneScopeNone, false, org.jruby.RubyComplex.class, "polar19", 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("polar", javaMethod); runtime.addBoundMethod("org.jruby.RubyComplex","polar19","polar"); populateMethod(javaMethod, 0, "rect", false, CallConfiguration.FrameNoneScopeNone, false, org.jruby.RubyComplex.class, "rect", org.jruby.runtime.builtin.IRubyObject.class, new Class[] {org.jruby.runtime.ThreadContext.class}); cls.addMethodAtBootTimeOnly("rectangular", javaMethod); cls.addMethodAtBootTimeOnly("rect", javaMethod); javaMethod = new org.jruby.RubyComplex$INVOKER$i$0$0$to_f(cls, Visibility.PUBLIC); populateMethod(javaMethod, 0, "to_f", false, CallConfiguration.FrameNoneScopeNone, false, org.jruby.RubyComplex.class, "to_f", org.jruby.runtime.builtin.IRubyObject.class, new Class[] {org.jruby.runtime.ThreadContext.class}); cls.addMethodAtBootTimeOnly("to_f", javaMethod); javaMethod = new org.jruby.RubyComplex$INVOKER$i$0$0$to_i(cls, Visibility.PUBLIC); populateMethod(javaMethod, 0, "to_i", false, CallConfiguration.FrameNoneScopeNone, false, org.jruby.RubyComplex.class, "to_i", org.jruby.runtime.builtin.IRubyObject.class, new Class[] {org.jruby.runtime.ThreadContext.class});
Ruby runtime = cls.getRuntime(); javaMethod = new org.jruby.RubyComplex$INVOKER$s$0$1$polar(singletonClass, Visibility.PUBLIC, "polar"); populateMethod(javaMethod, -1, "polar", true, false, org.jruby.RubyComplex.class, "polar", org.jruby.runtime.builtin.IRubyObject.class, CONTEXT_ARG1_ARY); aliasedMethod = singletonClass.putMethod(runtime, "polar", javaMethod); javaMethod = new org.jruby.RubyComplex$INVOKER$s$newInstance(singletonClass, Visibility.PUBLIC, "rect"); populateMethod(javaMethod, -1, "newInstance", true, false, org.jruby.RubyComplex.class, "newInstance", org.jruby.runtime.builtin.IRubyObject.class, CONTEXT_ARG2); aliasedMethod = singletonClass.putMethod(runtime, "rect", javaMethod); singletonClass.putMethod(runtime, "rectangular", javaMethod); javaMethod = new org.jruby.RubyComplex$INVOKER$s$newInstanceBang(singletonClass, Visibility.PRIVATE, "new!"); populateMethod(javaMethod, -1, "newInstanceBang", true, false, org.jruby.RubyComplex.class, "newInstanceBang", org.jruby.runtime.builtin.IRubyObject.class, CONTEXT_ARG2); aliasedMethod = singletonClass.putMethod(runtime, "new!", javaMethod); javaMethod = new org.jruby.RubyComplex$INVOKER$s$convert(singletonClass, Visibility.PRIVATE, "convert"); populateMethod(javaMethod, -1, "convert", true, false, org.jruby.RubyComplex.class, "convert", org.jruby.runtime.builtin.IRubyObject.class, CONTEXT_ARG2); aliasedMethod = singletonClass.putMethod(runtime, "convert", javaMethod); javaMethod = new org.jruby.RubyComplex$INVOKER$i$1$0$op_expt(cls, Visibility.PUBLIC, "**"); populateMethod(javaMethod, 1, "op_expt", false, false, org.jruby.RubyComplex.class, "op_expt", org.jruby.runtime.builtin.IRubyObject.class, CONTEXT_ARG1); aliasedMethod = cls.putMethod(runtime, "**", javaMethod); javaMethod = new org.jruby.RubyComplex$INVOKER$i$1$0$coerce(cls, Visibility.PUBLIC, "coerce"); populateMethod(javaMethod, 1, "coerce", false, false, org.jruby.RubyComplex.class, "coerce", org.jruby.runtime.builtin.IRubyObject.class, CONTEXT_ARG1); aliasedMethod = cls.putMethod(runtime, "coerce", javaMethod); javaMethod = new org.jruby.RubyComplex$INVOKER$i$1$0$fdiv(cls, Visibility.PUBLIC, "fdiv"); populateMethod(javaMethod, 1, "fdiv", false, false, org.jruby.RubyComplex.class, "fdiv", org.jruby.runtime.builtin.IRubyObject.class, CONTEXT_ARG1); aliasedMethod = cls.putMethod(runtime, "fdiv", javaMethod); javaMethod = new org.jruby.RubyComplex$INVOKER$i$1$0$marshal_load(cls, Visibility.PUBLIC, "marshal_load"); populateMethod(javaMethod, 1, "marshal_load", false, false, org.jruby.RubyComplex.class, "marshal_load", org.jruby.runtime.builtin.IRubyObject.class, CONTEXT_ARG1); aliasedMethod = cls.putMethod(runtime, "marshal_load", javaMethod); javaMethod = new org.jruby.RubyComplex$INVOKER$i$1$0$eql_p(cls, Visibility.PUBLIC, "eql?"); populateMethod(javaMethod, 1, "eql_p", false, false, org.jruby.RubyComplex.class, "eql_p", org.jruby.runtime.builtin.IRubyObject.class, CONTEXT_ARG1); aliasedMethod = cls.putMethod(runtime, "eql?", javaMethod);
Ruby runtime = cls.getRuntime(); javaMethod = new org.jruby.RubyComplex$INVOKER$s$0$1$polar(singletonClass, Visibility.PUBLIC, "polar"); populateMethod(javaMethod, -1, "polar", true, false, org.jruby.RubyComplex.class, "polar", org.jruby.runtime.builtin.IRubyObject.class, CONTEXT_ARG1_ARY); aliasedMethod = singletonClass.putMethod(runtime, "polar", javaMethod); javaMethod = new org.jruby.RubyComplex$INVOKER$s$newInstance(singletonClass, Visibility.PUBLIC, "rect"); populateMethod(javaMethod, -1, "newInstance", true, false, org.jruby.RubyComplex.class, "newInstance", org.jruby.runtime.builtin.IRubyObject.class, CONTEXT_ARG2); aliasedMethod = singletonClass.putMethod(runtime, "rect", javaMethod); singletonClass.putMethod(runtime, "rectangular", javaMethod); javaMethod = new org.jruby.RubyComplex$INVOKER$s$newInstanceBang(singletonClass, Visibility.PRIVATE, "new!"); populateMethod(javaMethod, -1, "newInstanceBang", true, false, org.jruby.RubyComplex.class, "newInstanceBang", org.jruby.runtime.builtin.IRubyObject.class, CONTEXT_ARG2); aliasedMethod = singletonClass.putMethod(runtime, "new!", javaMethod); javaMethod = new org.jruby.RubyComplex$INVOKER$s$convert(singletonClass, Visibility.PRIVATE, "convert"); populateMethod(javaMethod, -1, "convert", true, false, org.jruby.RubyComplex.class, "convert", org.jruby.runtime.builtin.IRubyObject.class, CONTEXT_ARG2); aliasedMethod = singletonClass.putMethod(runtime, "convert", javaMethod); javaMethod = new org.jruby.RubyComplex$INVOKER$i$1$0$op_expt(cls, Visibility.PUBLIC, "**"); populateMethod(javaMethod, 1, "op_expt", false, false, org.jruby.RubyComplex.class, "op_expt", org.jruby.runtime.builtin.IRubyObject.class, CONTEXT_ARG1); aliasedMethod = cls.putMethod(runtime, "**", javaMethod); javaMethod = new org.jruby.RubyComplex$INVOKER$i$1$0$coerce(cls, Visibility.PUBLIC, "coerce"); populateMethod(javaMethod, 1, "coerce", false, false, org.jruby.RubyComplex.class, "coerce", org.jruby.runtime.builtin.IRubyObject.class, CONTEXT_ARG1); aliasedMethod = cls.putMethod(runtime, "coerce", javaMethod); javaMethod = new org.jruby.RubyComplex$INVOKER$i$1$0$fdiv(cls, Visibility.PUBLIC, "fdiv"); populateMethod(javaMethod, 1, "fdiv", false, false, org.jruby.RubyComplex.class, "fdiv", org.jruby.runtime.builtin.IRubyObject.class, CONTEXT_ARG1); aliasedMethod = cls.putMethod(runtime, "fdiv", javaMethod); javaMethod = new org.jruby.RubyComplex$INVOKER$i$1$0$marshal_load(cls, Visibility.PUBLIC, "marshal_load"); populateMethod(javaMethod, 1, "marshal_load", false, false, org.jruby.RubyComplex.class, "marshal_load", org.jruby.runtime.builtin.IRubyObject.class, CONTEXT_ARG1); aliasedMethod = cls.putMethod(runtime, "marshal_load", javaMethod); javaMethod = new org.jruby.RubyComplex$INVOKER$i$1$0$eql_p(cls, Visibility.PUBLIC, "eql?"); populateMethod(javaMethod, 1, "eql_p", false, false, org.jruby.RubyComplex.class, "eql_p", org.jruby.runtime.builtin.IRubyObject.class, CONTEXT_ARG1); aliasedMethod = cls.putMethod(runtime, "eql?", javaMethod);