org.jruby.gen.org$jruby$ext$fiber$ThreadFiber$POPULATOR Maven / Gradle / Ivy
/* THIS FILE IS GENERATED. DO NOT EDIT */
package org.jruby.gen;
import org.jruby.Ruby;
import org.jruby.RubyModule;
import org.jruby.RubyClass;
import org.jruby.CompatVersion;
import org.jruby.anno.TypePopulator;
import org.jruby.internal.runtime.methods.CallConfiguration;
import org.jruby.internal.runtime.methods.JavaMethod;
import org.jruby.internal.runtime.methods.DynamicMethod;
import org.jruby.runtime.Arity;
import org.jruby.runtime.Visibility;
import org.jruby.compiler.ASTInspector;
import java.util.Arrays;
import java.util.List;
import javax.annotation.Generated;
@Generated("org.jruby.anno.AnnotationBinder")
public class org$jruby$ext$fiber$ThreadFiber$POPULATOR extends TypePopulator {
public void populate(RubyModule cls, Class clazz) {
JavaMethod javaMethod;
DynamicMethod moduleMethod;
RubyClass singletonClass = cls.getSingletonClass();
Ruby runtime = cls.getRuntime();
javaMethod = new org.jruby.ext.fiber.ThreadFiber$INVOKER$s$yield(singletonClass, Visibility.PUBLIC);
populateMethod(javaMethod, -1, "yield", true, CallConfiguration.FrameNoneScopeNone, false, org.jruby.ext.fiber.ThreadFiber.class, "yield", org.jruby.runtime.builtin.IRubyObject.class, new Class[] {org.jruby.runtime.ThreadContext.class, org.jruby.runtime.builtin.IRubyObject.class});
singletonClass.addMethodAtBootTimeOnly("yield", javaMethod);
javaMethod = new org.jruby.ext.fiber.ThreadFiber$INVOKER$s$0$0$__current__(singletonClass, Visibility.PUBLIC);
populateMethod(javaMethod, 0, "__current__", true, CallConfiguration.FrameNoneScopeNone, false, org.jruby.ext.fiber.ThreadFiber.class, "__current__", org.jruby.runtime.builtin.IRubyObject.class, new Class[] {org.jruby.runtime.ThreadContext.class, org.jruby.runtime.builtin.IRubyObject.class});
singletonClass.addMethodAtBootTimeOnly("__current__", javaMethod);
runtime.addBoundMethod("org.jruby.ext.fiber.ThreadFiber","yield","yield");
runtime.addBoundMethod("org.jruby.ext.fiber.ThreadFiber","__current__","__current__");
javaMethod = new org.jruby.ext.fiber.ThreadFiber$INVOKER$i$0$0$initialize(cls, Visibility.PRIVATE);
populateMethod(javaMethod, 0, "initialize", false, CallConfiguration.FrameNoneScopeNone, false, org.jruby.ext.fiber.ThreadFiber.class, "initialize", org.jruby.runtime.builtin.IRubyObject.class, new Class[] {org.jruby.runtime.ThreadContext.class, org.jruby.runtime.Block.class});
cls.addMethodAtBootTimeOnly("initialize", javaMethod);
javaMethod = new org.jruby.ext.fiber.ThreadFiber$INVOKER$i$0$0$resume(cls, Visibility.PUBLIC);
populateMethod(javaMethod, -1, "resume", false, CallConfiguration.FrameNoneScopeNone, false, org.jruby.ext.fiber.ThreadFiber.class, "resume", org.jruby.runtime.builtin.IRubyObject.class, new Class[] {org.jruby.runtime.ThreadContext.class, org.jruby.runtime.builtin.IRubyObject[].class});
cls.addMethodAtBootTimeOnly("resume", javaMethod);
javaMethod = new org.jruby.ext.fiber.ThreadFiber$INVOKER$i$0$0$__transfer__(cls, Visibility.PUBLIC);
populateMethod(javaMethod, -1, "__transfer__", false, CallConfiguration.FrameNoneScopeNone, false, org.jruby.ext.fiber.ThreadFiber.class, "__transfer__", org.jruby.runtime.builtin.IRubyObject.class, new Class[] {org.jruby.runtime.ThreadContext.class, org.jruby.runtime.builtin.IRubyObject[].class});
cls.addMethodAtBootTimeOnly("__transfer__", javaMethod);
javaMethod = new org.jruby.ext.fiber.ThreadFiber$INVOKER$i$0$0$__alive__(cls, Visibility.PUBLIC);
populateMethod(javaMethod, 0, "__alive__", false, CallConfiguration.FrameNoneScopeNone, false, org.jruby.ext.fiber.ThreadFiber.class, "__alive__", org.jruby.runtime.builtin.IRubyObject.class, new Class[] {org.jruby.runtime.ThreadContext.class});
cls.addMethodAtBootTimeOnly("__alive__", javaMethod);
runtime.addBoundMethod("org.jruby.ext.fiber.ThreadFiber","initialize","initialize");
runtime.addBoundMethod("org.jruby.ext.fiber.ThreadFiber","resume","resume");
runtime.addBoundMethod("org.jruby.ext.fiber.ThreadFiber","__transfer__","__transfer__");
runtime.addBoundMethod("org.jruby.ext.fiber.ThreadFiber","__alive__","__alive__");
}
static {
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy