/* 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$RubyRegexp$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.RubyRegexp$INVOKER$s$last_match_s(singletonClass, Visibility.PUBLIC, "last_match");
        populateMethod(javaMethod, -1, "last_match_s", true, false, org.jruby.RubyRegexp.class, "last_match_s", org.jruby.runtime.builtin.IRubyObject.class, CONTEXT_ARG1);
        aliasedMethod = singletonClass.putMethod(runtime, "last_match", javaMethod);
        javaMethod = new org.jruby.RubyRegexp$INVOKER$s$1$0$quote(singletonClass, Visibility.PUBLIC, "quote");
        populateMethod(javaMethod, 1, "quote", true, false, org.jruby.RubyRegexp.class, "quote", org.jruby.RubyString.class, CONTEXT_ARG2);
        aliasedMethod = singletonClass.putMethod(runtime, "quote", javaMethod);
        singletonClass.putMethod(runtime, "escape", javaMethod);
        javaMethod = new org.jruby.RubyRegexp$INVOKER$s$1$0$try_convert(singletonClass, Visibility.PUBLIC, "try_convert");
        populateMethod(javaMethod, 1, "try_convert", true, false, org.jruby.RubyRegexp.class, "try_convert", org.jruby.runtime.builtin.IRubyObject.class, CONTEXT_ARG2);
        aliasedMethod = singletonClass.putMethod(runtime, "try_convert", javaMethod);
        javaMethod = new org.jruby.RubyRegexp$INVOKER$s$0$0$union(singletonClass, Visibility.PUBLIC, "union");
        populateMethod(javaMethod, -1, "union", true, false, org.jruby.RubyRegexp.class, "union", org.jruby.runtime.builtin.IRubyObject.class, CONTEXT_ARG1_ARY);
        aliasedMethod = singletonClass.putMethod(runtime, "union", javaMethod);
        javaMethod = new org.jruby.RubyRegexp$INVOKER$i$1$0$op_equal(cls, Visibility.PUBLIC, "==");
        populateMethod(javaMethod, 1, "op_equal", false, false, org.jruby.RubyRegexp.class, "op_equal", org.jruby.runtime.builtin.IRubyObject.class, CONTEXT_ARG1);
        aliasedMethod = cls.putMethod(runtime, "==", javaMethod);
        cls.putMethod(runtime, "eql?", javaMethod);
        javaMethod = new org.jruby.RubyRegexp$INVOKER$i$1$0$op_match(cls, Visibility.PUBLIC, "=~");
        populateMethod(javaMethod, 1, "op_match", false, false, org.jruby.RubyRegexp.class, "op_match", org.jruby.runtime.builtin.IRubyObject.class, CONTEXT_ARG1);
        aliasedMethod = cls.putMethod(runtime, "=~", javaMethod);
        javaMethod = new org.jruby.RubyRegexp$INVOKER$i$0$0$source(cls, Visibility.PUBLIC, "source");
        populateMethod(javaMethod, 0, "source", false, false, org.jruby.RubyRegexp.class, "source", org.jruby.runtime.builtin.IRubyObject.class, ARG0);
        aliasedMethod = cls.putMethod(runtime, "source", javaMethod);
        javaMethod = new org.jruby.RubyRegexp$INVOKER$i$0$0$fixed_encoding_p(cls, Visibility.PUBLIC, "fixed_encoding?");
        populateMethod(javaMethod, 0, "fixed_encoding_p", false, false, org.jruby.RubyRegexp.class, "fixed_encoding_p", org.jruby.runtime.builtin.IRubyObject.class, CONTEXT_ARG0);
        aliasedMethod = cls.putMethod(runtime, "fixed_encoding?", javaMethod);
        javaMethod = new org.jruby.RubyRegexp$INVOKER$i$match_m(cls, Visibility.PUBLIC, "match");
        populateMethod(javaMethod, -1, "match_m", false, false, org.jruby.RubyRegexp.class, "match_m", org.jruby.runtime.builtin.IRubyObject.class, CONTEXT_ARG1_BLOCK);
        aliasedMethod = cls.putMethod(runtime, "match", javaMethod);
        javaMethod = new org.jruby.RubyRegexp$INVOKER$i$0$0$casefold_p(cls, Visibility.PUBLIC, "casefold?");
        populateMethod(javaMethod, 0, "casefold_p", false, false, org.jruby.RubyRegexp.class, "casefold_p", org.jruby.runtime.builtin.IRubyObject.class, CONTEXT_ARG0);
        aliasedMethod = cls.putMethod(runtime, "casefold?", javaMethod);
        javaMethod = new org.jruby.RubyRegexp$INVOKER$i$0$0$to_s(cls, Visibility.PUBLIC, "to_s");
        populateMethod(javaMethod, 0, "to_s", false, false, org.jruby.RubyRegexp.class, "to_s", org.jruby.RubyString.class, ARG0);
        aliasedMethod = cls.putMethod(runtime, "to_s", javaMethod);
        javaMethod = new org.jruby.RubyRegexp$INVOKER$i$0$0$names(cls, Visibility.PUBLIC, "names");
        populateMethod(javaMethod, 0, "names", false, false, org.jruby.RubyRegexp.class, "names", org.jruby.runtime.builtin.IRubyObject.class, CONTEXT_ARG0);
        aliasedMethod = cls.putMethod(runtime, "names", javaMethod);
        javaMethod = new org.jruby.RubyRegexp$INVOKER$i$match_p(cls, Visibility.PUBLIC, "match?");
        populateMethod(javaMethod, -1, "match_p", false, false, org.jruby.RubyRegexp.class, "match_p", org.jruby.runtime.builtin.IRubyObject.class, CONTEXT_ARG1);
        aliasedMethod = cls.putMethod(runtime, "match?", javaMethod);
        javaMethod = new org.jruby.RubyRegexp$INVOKER$i$0$0$inspect(cls, Visibility.PUBLIC, "inspect");
        populateMethod(javaMethod, 0, "inspect", false, false, org.jruby.RubyRegexp.class, "inspect", org.jruby.runtime.builtin.IRubyObject.class, ARG0);
        aliasedMethod = cls.putMethod(runtime, "inspect", javaMethod);
        javaMethod = new org.jruby.RubyRegexp$INVOKER$i$0$0$encoding(cls, Visibility.PUBLIC, "encoding");
        populateMethod(javaMethod, 0, "encoding", false, false, org.jruby.RubyRegexp.class, "encoding", org.jruby.runtime.builtin.IRubyObject.class, CONTEXT_ARG0);
        aliasedMethod = cls.putMethod(runtime, "encoding", javaMethod);
        javaMethod = new org.jruby.RubyRegexp$INVOKER$i$0$0$named_captures(cls, Visibility.PUBLIC, "named_captures");
        populateMethod(javaMethod, 0, "named_captures", false, false, org.jruby.RubyRegexp.class, "named_captures", org.jruby.runtime.builtin.IRubyObject.class, CONTEXT_ARG0);
        aliasedMethod = cls.putMethod(runtime, "named_captures", javaMethod);
        javaMethod = new org.jruby.RubyRegexp$INVOKER$i$initialize_m(cls, Visibility.PRIVATE, "initialize");
        populateMethod(javaMethod, -1, "initialize_m", false, false, org.jruby.RubyRegexp.class, "initialize_m", org.jruby.runtime.builtin.IRubyObject.class, ARG1);
        aliasedMethod = cls.putMethod(runtime, "initialize", javaMethod);
        javaMethod = new org.jruby.RubyRegexp$INVOKER$i$0$0$hash(cls, Visibility.PUBLIC, "hash");
        populateMethod(javaMethod, 0, "hash", false, false, org.jruby.RubyRegexp.class, "hash", org.jruby.RubyFixnum.class, ARG0);
        aliasedMethod = cls.putMethod(runtime, "hash", javaMethod);
        javaMethod = new org.jruby.RubyRegexp$INVOKER$i$1$0$eqq(cls, Visibility.PUBLIC, "===");
        populateMethod(javaMethod, 1, "eqq", false, false, org.jruby.RubyRegexp.class, "eqq", org.jruby.runtime.builtin.IRubyObject.class, CONTEXT_ARG1);
        aliasedMethod = cls.putMethod(runtime, "===", javaMethod);
        javaMethod = new org.jruby.RubyRegexp$INVOKER$i$0$0$options(cls, Visibility.PUBLIC, "options");
        populateMethod(javaMethod, 0, "options", false, false, org.jruby.RubyRegexp.class, "options", org.jruby.runtime.builtin.IRubyObject.class, ARG0);
        aliasedMethod = cls.putMethod(runtime, "options", javaMethod);
        javaMethod = new org.jruby.RubyRegexp$INVOKER$i$1$0$initialize_copy(cls, Visibility.PRIVATE, "initialize_copy");
        populateMethod(javaMethod, 1, "initialize_copy", false, false, org.jruby.RubyRegexp.class, "initialize_copy", org.jruby.runtime.builtin.IRubyObject.class, ARG1);
        aliasedMethod = cls.putMethod(runtime, "initialize_copy", javaMethod);
        javaMethod = new org.jruby.RubyRegexp$INVOKER$i$0$0$op_match2(cls, Visibility.PUBLIC, "~");
        populateMethod(javaMethod, 0, "op_match2", false, false, org.jruby.RubyRegexp.class, "op_match2", org.jruby.runtime.builtin.IRubyObject.class, CONTEXT_ARG0);
        aliasedMethod = cls.putMethod(runtime, "~", javaMethod);

        runtime.addBoundMethods("org.jruby.RubyRegexp", "op_equal", "==", "op_match", "=~", "fixed_encoding_p", "fixed_encoding?", "match_m", "match", "union", "union", "casefold_p", "casefold?", "last_match_s", "last_match", "quote", "quote", "match_p", "match?", "inspect", "inspect", "initialize_m", "initialize", "eqq", "===", "op_match2", "~", "try_convert", "try_convert", "source", "source", "to_s", "to_s", "names", "names", "encoding", "encoding", "named_captures", "named_captures", "hash", "hash", "options", "options", "initialize_copy", "initialize_copy");
    }
    static {
        MethodIndex.addMethodReadFieldsPacked(2, "last_match;=~;match");
        MethodIndex.addMethodReadFieldsPacked(3, "~");
        MethodIndex.addMethodWriteFieldsPacked(2, "~;===;=~");
    }
}