public void populate(RubyModule cls, Class clazz) { JavaMethod javaMethod; DynamicMethod moduleMethod, aliasedMethod; RubyClass singletonClass = cls.getSingletonClass(); Ruby runtime = cls.getRuntime(); javaMethod = new org.jruby.ext.coverage.CoverageModule$INVOKER$s$0$0$start(cls, Visibility.PUBLIC, "start"); populateMethod(javaMethod, 0, "start", true, false, org.jruby.ext.coverage.CoverageModule.class, "start", org.jruby.runtime.builtin.IRubyObject.class, CONTEXT_ARG1); aliasedMethod = cls.putMethod(runtime, "start", javaMethod); moduleMethod = populateModuleMethod(cls, javaMethod); aliasedMethod = singletonClass.putMethod(runtime, "start", moduleMethod); javaMethod = new org.jruby.ext.coverage.CoverageModule$INVOKER$s$0$0$result(cls, Visibility.PUBLIC, "result"); populateMethod(javaMethod, 0, "result", true, false, org.jruby.ext.coverage.CoverageModule.class, "result", org.jruby.runtime.builtin.IRubyObject.class, CONTEXT_ARG1); aliasedMethod = cls.putMethod(runtime, "result", javaMethod); moduleMethod = populateModuleMethod(cls, javaMethod); aliasedMethod = singletonClass.putMethod(runtime, "result", moduleMethod); javaMethod = new org.jruby.ext.coverage.CoverageModule$INVOKER$s$0$0$peek_result(cls, Visibility.PUBLIC, "peek_result"); populateMethod(javaMethod, 0, "peek_result", true, false, org.jruby.ext.coverage.CoverageModule.class, "peek_result", org.jruby.runtime.builtin.IRubyObject.class, CONTEXT_ARG1); aliasedMethod = cls.putMethod(runtime, "peek_result", javaMethod); moduleMethod = populateModuleMethod(cls, javaMethod); aliasedMethod = singletonClass.putMethod(runtime, "peek_result", moduleMethod); javaMethod = new org.jruby.ext.coverage.CoverageModule$INVOKER$s$0$0$running_p(cls, Visibility.PUBLIC, "running?"); populateMethod(javaMethod, 0, "running_p", true, false, org.jruby.ext.coverage.CoverageModule.class, "running_p", org.jruby.runtime.builtin.IRubyObject.class, CONTEXT_ARG1); aliasedMethod = cls.putMethod(runtime, "running?", javaMethod); moduleMethod = populateModuleMethod(cls, javaMethod); aliasedMethod = singletonClass.putMethod(runtime, "running?", moduleMethod); runtime.addBoundMethods("org.jruby.ext.coverage.CoverageModule", "running_p", "running?", "start", "start", "result", "result", "peek_result", "peek_result"); } static {
public void populate(RubyModule cls, Class clazz) { JavaMethod javaMethod; DynamicMethod moduleMethod, aliasedMethod; RubyClass singletonClass = cls.getSingletonClass(); Ruby runtime = cls.getRuntime(); javaMethod = new org.jruby.ext.coverage.CoverageModule$INVOKER$s$0$0$start(cls, Visibility.PUBLIC, "start"); populateMethod(javaMethod, 0, "start", true, false, org.jruby.ext.coverage.CoverageModule.class, "start", org.jruby.runtime.builtin.IRubyObject.class, CONTEXT_ARG1); aliasedMethod = cls.putMethod(runtime, "start", javaMethod); moduleMethod = populateModuleMethod(cls, javaMethod); aliasedMethod = singletonClass.putMethod(runtime, "start", moduleMethod); javaMethod = new org.jruby.ext.coverage.CoverageModule$INVOKER$s$0$0$result(cls, Visibility.PUBLIC, "result"); populateMethod(javaMethod, 0, "result", true, false, org.jruby.ext.coverage.CoverageModule.class, "result", org.jruby.runtime.builtin.IRubyObject.class, CONTEXT_ARG1); aliasedMethod = cls.putMethod(runtime, "result", javaMethod); moduleMethod = populateModuleMethod(cls, javaMethod); aliasedMethod = singletonClass.putMethod(runtime, "result", moduleMethod); javaMethod = new org.jruby.ext.coverage.CoverageModule$INVOKER$s$0$0$peek_result(cls, Visibility.PUBLIC, "peek_result"); populateMethod(javaMethod, 0, "peek_result", true, false, org.jruby.ext.coverage.CoverageModule.class, "peek_result", org.jruby.runtime.builtin.IRubyObject.class, CONTEXT_ARG1); aliasedMethod = cls.putMethod(runtime, "peek_result", javaMethod); moduleMethod = populateModuleMethod(cls, javaMethod); aliasedMethod = singletonClass.putMethod(runtime, "peek_result", moduleMethod); javaMethod = new org.jruby.ext.coverage.CoverageModule$INVOKER$s$0$0$running_p(cls, Visibility.PUBLIC, "running?"); populateMethod(javaMethod, 0, "running_p", true, false, org.jruby.ext.coverage.CoverageModule.class, "running_p", org.jruby.runtime.builtin.IRubyObject.class, CONTEXT_ARG1); aliasedMethod = cls.putMethod(runtime, "running?", javaMethod); moduleMethod = populateModuleMethod(cls, javaMethod); aliasedMethod = singletonClass.putMethod(runtime, "running?", moduleMethod); runtime.addBoundMethods("org.jruby.ext.coverage.CoverageModule", "running_p", "running?", "start", "start", "result", "result", "peek_result", "peek_result"); } static {
public void populate(RubyModule cls, Class clazz) { JavaMethod javaMethod; DynamicMethod moduleMethod; RubyClass singletonClass = cls.getSingletonClass(); Ruby runtime = cls.getRuntime(); javaMethod = new org.jruby.ext.coverage.CoverageModule$INVOKER$s$0$0$result(cls, Visibility.PUBLIC); populateMethod(javaMethod, 0, "result", true, CallConfiguration.FrameNoneScopeNone, false, org.jruby.ext.coverage.CoverageModule.class, "result", org.jruby.runtime.builtin.IRubyObject.class, new Class[] {org.jruby.runtime.ThreadContext.class, org.jruby.runtime.builtin.IRubyObject.class}); cls.addMethodAtBootTimeOnly("result", javaMethod); moduleMethod = populateModuleMethod(cls, javaMethod); singletonClass.addMethodAtBootTimeOnly("result", moduleMethod); javaMethod = new org.jruby.ext.coverage.CoverageModule$INVOKER$s$0$0$start(cls, Visibility.PUBLIC); populateMethod(javaMethod, 0, "start", true, CallConfiguration.FrameNoneScopeNone, false, org.jruby.ext.coverage.CoverageModule.class, "start", org.jruby.runtime.builtin.IRubyObject.class, new Class[] {org.jruby.runtime.ThreadContext.class, org.jruby.runtime.builtin.IRubyObject.class}); cls.addMethodAtBootTimeOnly("start", javaMethod); moduleMethod = populateModuleMethod(cls, javaMethod); singletonClass.addMethodAtBootTimeOnly("start", moduleMethod); runtime.addBoundMethod("org.jruby.ext.coverage.CoverageModule","result","result"); runtime.addBoundMethod("org.jruby.ext.coverage.CoverageModule","start","start"); } static {
public void populate(RubyModule cls, Class clazz) { JavaMethod javaMethod; DynamicMethod moduleMethod; RubyClass singletonClass = cls.getSingletonClass(); Ruby runtime = cls.getRuntime(); javaMethod = new org.jruby.ext.coverage.CoverageModule$INVOKER$s$0$0$start(cls, Visibility.PUBLIC); populateMethod(javaMethod, 0, "start", true, CallConfiguration.FrameNoneScopeNone, false, org.jruby.ext.coverage.CoverageModule.class, "start", org.jruby.runtime.builtin.IRubyObject.class, new Class[] {org.jruby.runtime.ThreadContext.class, org.jruby.runtime.builtin.IRubyObject.class}); cls.addMethodAtBootTimeOnly("start", javaMethod); moduleMethod = populateModuleMethod(cls, javaMethod); singletonClass.addMethodAtBootTimeOnly("start", moduleMethod); javaMethod = new org.jruby.ext.coverage.CoverageModule$INVOKER$s$0$0$result(cls, Visibility.PUBLIC); populateMethod(javaMethod, 0, "result", true, CallConfiguration.FrameNoneScopeNone, false, org.jruby.ext.coverage.CoverageModule.class, "result", org.jruby.runtime.builtin.IRubyObject.class, new Class[] {org.jruby.runtime.ThreadContext.class, org.jruby.runtime.builtin.IRubyObject.class}); cls.addMethodAtBootTimeOnly("result", javaMethod); moduleMethod = populateModuleMethod(cls, javaMethod); singletonClass.addMethodAtBootTimeOnly("result", moduleMethod); runtime.addBoundMethod("org.jruby.ext.coverage.CoverageModule","start","start"); runtime.addBoundMethod("org.jruby.ext.coverage.CoverageModule","result","result"); } static {