/* 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$ffi$Type$Array$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.ffi.Type$Array$INVOKER$s$2$0$newInstance(singletonClass, Visibility.PUBLIC, "new");
        populateMethod(javaMethod, 2, "newInstance", true, false, org.jruby.ext.ffi.Type.Array.class, "newInstance", org.jruby.runtime.builtin.IRubyObject.class, CONTEXT_ARG3);
        aliasedMethod = singletonClass.putMethod(runtime, "new", javaMethod);
        javaMethod = new org.jruby.ext.ffi.Type$Array$INVOKER$i$0$0$length(cls, Visibility.PUBLIC, "length");
        populateMethod(javaMethod, 0, "length", false, false, org.jruby.ext.ffi.Type.Array.class, "length", org.jruby.runtime.builtin.IRubyObject.class, CONTEXT_ARG0);
        aliasedMethod = cls.putMethod(runtime, "length", javaMethod);
        javaMethod = new org.jruby.ext.ffi.Type$Array$INVOKER$i$0$0$elem_type(cls, Visibility.PUBLIC, "elem_type");
        populateMethod(javaMethod, 0, "elem_type", false, false, org.jruby.ext.ffi.Type.Array.class, "elem_type", org.jruby.runtime.builtin.IRubyObject.class, CONTEXT_ARG0);
        aliasedMethod = cls.putMethod(runtime, "elem_type", javaMethod);

        runtime.addBoundMethods("org.jruby.ext.ffi.Type.Array", "newInstance", "new", "length", "length", "elem_type", "elem_type");
    }
    static {
    }
}