/* 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$StructLayout$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.StructLayout$INVOKER$s$0$1$newStructLayout(singletonClass, Visibility.PUBLIC, "new");
        populateMethod(javaMethod, -1, "newStructLayout", true, false, org.jruby.ext.ffi.StructLayout.class, "newStructLayout", org.jruby.runtime.builtin.IRubyObject.class, CONTEXT_ARG1_ARY);
        aliasedMethod = singletonClass.putMethod(runtime, "new", javaMethod);
        javaMethod = new org.jruby.ext.ffi.StructLayout$INVOKER$i$1$0$offset_of(cls, Visibility.PUBLIC, "offset_of");
        populateMethod(javaMethod, 1, "offset_of", false, false, org.jruby.ext.ffi.StructLayout.class, "offset_of", org.jruby.runtime.builtin.IRubyObject.class, CONTEXT_ARG1);
        aliasedMethod = cls.putMethod(runtime, "offset_of", javaMethod);
        javaMethod = new org.jruby.ext.ffi.StructLayout$INVOKER$i$1$0$aref(cls, Visibility.PUBLIC, "[]");
        populateMethod(javaMethod, 1, "aref", false, false, org.jruby.ext.ffi.StructLayout.class, "aref", org.jruby.runtime.builtin.IRubyObject.class, CONTEXT_ARG1);
        aliasedMethod = cls.putMethod(runtime, "[]", javaMethod);
        javaMethod = new org.jruby.ext.ffi.StructLayout$INVOKER$i$0$0$fields(cls, Visibility.PUBLIC, "fields");
        populateMethod(javaMethod, 0, "fields", false, false, org.jruby.ext.ffi.StructLayout.class, "fields", org.jruby.runtime.builtin.IRubyObject.class, CONTEXT_ARG0);
        aliasedMethod = cls.putMethod(runtime, "fields", javaMethod);
        javaMethod = new org.jruby.ext.ffi.StructLayout$INVOKER$i$0$0$offsets(cls, Visibility.PUBLIC, "offsets");
        populateMethod(javaMethod, 0, "offsets", false, false, org.jruby.ext.ffi.StructLayout.class, "offsets", org.jruby.runtime.builtin.IRubyObject.class, CONTEXT_ARG0);
        aliasedMethod = cls.putMethod(runtime, "offsets", javaMethod);
        javaMethod = new org.jruby.ext.ffi.StructLayout$INVOKER$i$2$0$get(cls, Visibility.PUBLIC, "get");
        populateMethod(javaMethod, 2, "get", false, false, org.jruby.ext.ffi.StructLayout.class, "get", org.jruby.runtime.builtin.IRubyObject.class, CONTEXT_ARG2);
        aliasedMethod = cls.putMethod(runtime, "get", javaMethod);
        javaMethod = new org.jruby.ext.ffi.StructLayout$INVOKER$i$0$0$members(cls, Visibility.PUBLIC, "members");
        populateMethod(javaMethod, 0, "members", false, false, org.jruby.ext.ffi.StructLayout.class, "members", org.jruby.runtime.builtin.IRubyObject.class, CONTEXT_ARG0);
        aliasedMethod = cls.putMethod(runtime, "members", javaMethod);
        javaMethod = new org.jruby.ext.ffi.StructLayout$INVOKER$i$3$0$put(cls, Visibility.PUBLIC, "put");
        populateMethod(javaMethod, 3, "put", false, false, org.jruby.ext.ffi.StructLayout.class, "put", org.jruby.runtime.builtin.IRubyObject.class, CONTEXT_ARG3);
        aliasedMethod = cls.putMethod(runtime, "put", javaMethod);

        runtime.addBoundMethods("org.jruby.ext.ffi.StructLayout", "newStructLayout", "new", "offset_of", "offset_of", "aref", "[]", "offsets", "offsets", "get", "get", "members", "members", "put", "put", "fields", "fields");
    }
    static {
    }
}