org.jruby.gen.org$jruby$ext$thread$SizedQueue$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.anno.TypePopulator;
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.runtime.MethodIndex;
import java.util.Arrays;
import java.util.List;
import javax.annotation.Generated;
@Generated("org.jruby.anno.AnnotationBinder")
@SuppressWarnings("deprecation")
public class org$jruby$ext$thread$SizedQueue$POPULATOR extends TypePopulator {
public void populate(RubyModule cls, Class clazz) {
JavaMethod javaMethod;
DynamicMethod moduleMethod, aliasedMethod;
Ruby runtime = cls.getRuntime();
javaMethod = new org.jruby.ext.thread.SizedQueue$INVOKER$i$0$0$max(cls, Visibility.PUBLIC, "max");
populateMethod(javaMethod, 0, "max", false, false, org.jruby.ext.thread.SizedQueue.class, "max", org.jruby.RubyNumeric.class, CONTEXT_ARG0);
aliasedMethod = cls.putMethod(runtime, "max", javaMethod);
javaMethod = new org.jruby.ext.thread.SizedQueue$INVOKER$i$1$0$max_set(cls, Visibility.PUBLIC, "max=");
populateMethod(javaMethod, 1, "max_set", false, false, org.jruby.ext.thread.SizedQueue.class, "max_set", org.jruby.runtime.builtin.IRubyObject.class, CONTEXT_ARG1);
aliasedMethod = cls.putMethod(runtime, "max=", javaMethod);
javaMethod = new org.jruby.ext.thread.SizedQueue$INVOKER$i$1$0$initialize(cls, Visibility.PRIVATE, "initialize");
populateMethod(javaMethod, 1, "initialize", false, false, org.jruby.ext.thread.SizedQueue.class, "initialize", org.jruby.runtime.builtin.IRubyObject.class, CONTEXT_ARG1);
aliasedMethod = cls.putMethod(runtime, "initialize", javaMethod);
javaMethod = new org.jruby.ext.thread.SizedQueue$INVOKER$i$0$0$num_waiting(cls, Visibility.PUBLIC, "num_waiting");
populateMethod(javaMethod, 0, "num_waiting", false, false, org.jruby.ext.thread.SizedQueue.class, "num_waiting", org.jruby.RubyNumeric.class, CONTEXT_ARG0);
aliasedMethod = cls.putMethod(runtime, "num_waiting", javaMethod);
javaMethod = new org.jruby.ext.thread.SizedQueue$INVOKER$i$0$1$push(cls, Visibility.PUBLIC, "push");
populateMethod(javaMethod, -1, "push", false, false, org.jruby.ext.thread.SizedQueue.class, "push", org.jruby.runtime.builtin.IRubyObject.class, CONTEXT_ARG0_ARY);
aliasedMethod = cls.putMethod(runtime, "push", javaMethod);
cls.putMethod(runtime, "<<", javaMethod);
cls.putMethod(runtime, "enq", javaMethod);
runtime.addBoundMethods("org.jruby.ext.thread.SizedQueue", "max_set", "max=", "initialize", "initialize", "push", "push", "max", "max", "num_waiting", "num_waiting");
}
static {
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy