/* 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$Mutex$POPULATOR extends TypePopulator {
    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.thread.Mutex$INVOKER$s$0$0$newInstance(singletonClass, Visibility.PUBLIC, "new");
        populateMethod(javaMethod, -1, "newInstance", true, false, org.jruby.ext.thread.Mutex.class, "newInstance", org.jruby.ext.thread.Mutex.class, CONTEXT_ARG1_ARY_BLOCK);
        aliasedMethod = singletonClass.putMethod(runtime, "new", javaMethod);
        javaMethod = new org.jruby.ext.thread.Mutex$INVOKER$i$0$0$try_lock(cls, Visibility.PUBLIC, "try_lock");
        populateMethod(javaMethod, 0, "try_lock", false, false, org.jruby.ext.thread.Mutex.class, "try_lock", org.jruby.RubyBoolean.class, CONTEXT_ARG0);
        aliasedMethod = cls.putMethod(runtime, "try_lock", javaMethod);
        javaMethod = new org.jruby.ext.thread.Mutex$INVOKER$i$0$0$owned_p(cls, Visibility.PUBLIC, "owned?");
        populateMethod(javaMethod, 0, "owned_p", false, false, org.jruby.ext.thread.Mutex.class, "owned_p", org.jruby.runtime.builtin.IRubyObject.class, CONTEXT_ARG0);
        aliasedMethod = cls.putMethod(runtime, "owned?", javaMethod);
        javaMethod = new org.jruby.ext.thread.Mutex$INVOKER$i$0$0$locked_p(cls, Visibility.PUBLIC, "locked?");
        populateMethod(javaMethod, 0, "locked_p", false, false, org.jruby.ext.thread.Mutex.class, "locked_p", org.jruby.RubyBoolean.class, CONTEXT_ARG0);
        aliasedMethod = cls.putMethod(runtime, "locked?", javaMethod);
        javaMethod = new org.jruby.ext.thread.Mutex$INVOKER$i$0$0$synchronize(cls, Visibility.PUBLIC, "synchronize");
        populateMethod(javaMethod, 0, "synchronize", false, false, org.jruby.ext.thread.Mutex.class, "synchronize", org.jruby.runtime.builtin.IRubyObject.class, CONTEXT_ARG0_BLOCK);
        aliasedMethod = cls.putMethod(runtime, "synchronize", javaMethod);
        javaMethod = new org.jruby.ext.thread.Mutex$INVOKER$i$0$0$unlock(cls, Visibility.PUBLIC, "unlock");
        populateMethod(javaMethod, 0, "unlock", false, false, org.jruby.ext.thread.Mutex.class, "unlock", org.jruby.runtime.builtin.IRubyObject.class, CONTEXT_ARG0);
        aliasedMethod = cls.putMethod(runtime, "unlock", javaMethod);
        javaMethod = new org.jruby.ext.thread.Mutex$INVOKER$i$sleep(cls, Visibility.PUBLIC, "sleep");
        populateMethod(javaMethod, -1, "sleep", false, false, org.jruby.ext.thread.Mutex.class, "sleep", org.jruby.runtime.builtin.IRubyObject.class, CONTEXT_ARG0);
        aliasedMethod = cls.putMethod(runtime, "sleep", javaMethod);
        javaMethod = new org.jruby.ext.thread.Mutex$INVOKER$i$0$0$lock(cls, Visibility.PUBLIC, "lock");
        populateMethod(javaMethod, 0, "lock", false, false, org.jruby.ext.thread.Mutex.class, "lock", org.jruby.runtime.builtin.IRubyObject.class, CONTEXT_ARG0);
        aliasedMethod = cls.putMethod(runtime, "lock", javaMethod);

        runtime.addBoundMethods("org.jruby.ext.thread.Mutex", "owned_p", "owned?", "newInstance", "new", "locked_p", "locked?", "try_lock", "try_lock", "synchronize", "synchronize", "unlock", "unlock", "sleep", "sleep", "lock", "lock");
    }
    static {
    }
}