org.jruby.gen.org$jruby$AbstractRubyMethod$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.CompatVersion;
import org.jruby.anno.TypePopulator;
import org.jruby.internal.runtime.methods.CallConfiguration;
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.compiler.ASTInspector;
import java.util.Arrays;
import java.util.List;
import javax.annotation.Generated;
@Generated("org.jruby.anno.AnnotationBinder")
public class org$jruby$AbstractRubyMethod$POPULATOR extends TypePopulator {
public void populate(RubyModule cls, Class clazz) {
JavaMethod javaMethod;
DynamicMethod moduleMethod;
CompatVersion compatVersion = cls.getRuntime().getInstanceConfig().getCompatVersion();
Ruby runtime = cls.getRuntime();
javaMethod = new org.jruby.AbstractRubyMethod$INVOKER$i$0$0$arity(cls, Visibility.PUBLIC);
populateMethod(javaMethod, 0, "arity", false, CallConfiguration.FrameNoneScopeNone, false, org.jruby.AbstractRubyMethod.class, "arity", org.jruby.RubyFixnum.class, new Class[] {});
cls.addMethodAtBootTimeOnly("arity", javaMethod);
javaMethod = new org.jruby.AbstractRubyMethod$INVOKER$i$0$0$owner(cls, Visibility.PUBLIC);
populateMethod(javaMethod, 0, "owner", false, CallConfiguration.FrameNoneScopeNone, false, org.jruby.AbstractRubyMethod.class, "owner", org.jruby.runtime.builtin.IRubyObject.class, new Class[] {org.jruby.runtime.ThreadContext.class});
cls.addMethodAtBootTimeOnly("owner", javaMethod);
runtime.addBoundMethod("org.jruby.AbstractRubyMethod","arity","arity");
runtime.addBoundMethod("org.jruby.AbstractRubyMethod","owner","owner");
if (compatVersion == CompatVersion.RUBY1_8 || compatVersion == CompatVersion.BOTH) {
javaMethod = new org.jruby.AbstractRubyMethod$INVOKER$i$0$0$name(cls, Visibility.PUBLIC);
populateMethod(javaMethod, 0, "name", false, CallConfiguration.FrameNoneScopeNone, false, org.jruby.AbstractRubyMethod.class, "name", org.jruby.runtime.builtin.IRubyObject.class, new Class[] {org.jruby.runtime.ThreadContext.class});
cls.addMethodAtBootTimeOnly("name", javaMethod);
runtime.addBoundMethod("org.jruby.AbstractRubyMethod","name","name");
}
if (compatVersion.is1_9() || compatVersion == CompatVersion.BOTH) {
javaMethod = new org.jruby.AbstractRubyMethod$INVOKER$i$0$0$name19(cls, Visibility.PUBLIC);
populateMethod(javaMethod, 0, "name19", false, CallConfiguration.FrameNoneScopeNone, false, org.jruby.AbstractRubyMethod.class, "name19", org.jruby.runtime.builtin.IRubyObject.class, new Class[] {org.jruby.runtime.ThreadContext.class});
cls.addMethodAtBootTimeOnly("name", javaMethod);
javaMethod = new org.jruby.AbstractRubyMethod$INVOKER$i$0$0$source_location(cls, Visibility.PUBLIC);
populateMethod(javaMethod, 0, "source_location", false, CallConfiguration.FrameNoneScopeNone, false, org.jruby.AbstractRubyMethod.class, "source_location", org.jruby.runtime.builtin.IRubyObject.class, new Class[] {org.jruby.runtime.ThreadContext.class});
cls.addMethodAtBootTimeOnly("source_location", javaMethod);
javaMethod = new org.jruby.AbstractRubyMethod$INVOKER$i$0$0$parameters(cls, Visibility.PUBLIC);
populateMethod(javaMethod, 0, "parameters", false, CallConfiguration.FrameNoneScopeNone, false, org.jruby.AbstractRubyMethod.class, "parameters", org.jruby.runtime.builtin.IRubyObject.class, new Class[] {org.jruby.runtime.ThreadContext.class});
cls.addMethodAtBootTimeOnly("parameters", javaMethod);
javaMethod = new org.jruby.AbstractRubyMethod$INVOKER$i$1$0$op_eql19(cls, Visibility.PUBLIC);
populateMethod(javaMethod, 1, "op_eql19", false, CallConfiguration.FrameNoneScopeNone, false, org.jruby.AbstractRubyMethod.class, "op_eql19", org.jruby.runtime.builtin.IRubyObject.class, new Class[] {org.jruby.runtime.ThreadContext.class, org.jruby.runtime.builtin.IRubyObject.class});
cls.addMethodAtBootTimeOnly("eql?", javaMethod);
runtime.addBoundMethod("org.jruby.AbstractRubyMethod","name19","name");
runtime.addBoundMethod("org.jruby.AbstractRubyMethod","source_location","source_location");
runtime.addBoundMethod("org.jruby.AbstractRubyMethod","parameters","parameters");
runtime.addBoundMethod("org.jruby.AbstractRubyMethod","op_eql19","eql?");
}
}
static {
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy