org.jruby.gen.org$jruby$ext$securerandom$SecureRandomLibrary$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$ext$securerandom$SecureRandomLibrary$POPULATOR extends TypePopulator {
public void populate(RubyModule cls, Class clazz) {
JavaMethod javaMethod;
DynamicMethod moduleMethod;
RubyClass singletonClass = cls.getSingletonClass();
CompatVersion compatVersion = cls.getRuntime().getInstanceConfig().getCompatVersion();
Ruby runtime = cls.getRuntime();
javaMethod = new org.jruby.ext.securerandom.SecureRandomLibrary$INVOKER$s$hex(singletonClass, Visibility.PUBLIC);
populateMethod(javaMethod, -1, "hex", true, CallConfiguration.FrameNoneScopeNone, false, org.jruby.ext.securerandom.SecureRandomLibrary.class, "hex", org.jruby.runtime.builtin.IRubyObject.class, new Class[] {org.jruby.runtime.ThreadContext.class, org.jruby.runtime.builtin.IRubyObject.class});
singletonClass.addMethodAtBootTimeOnly("hex", javaMethod);
javaMethod = new org.jruby.ext.securerandom.SecureRandomLibrary$INVOKER$s$random_bytes(singletonClass, Visibility.PUBLIC);
populateMethod(javaMethod, -1, "random_bytes", true, CallConfiguration.FrameNoneScopeNone, false, org.jruby.ext.securerandom.SecureRandomLibrary.class, "random_bytes", org.jruby.runtime.builtin.IRubyObject.class, new Class[] {org.jruby.runtime.ThreadContext.class, org.jruby.runtime.builtin.IRubyObject.class});
singletonClass.addMethodAtBootTimeOnly("random_bytes", javaMethod);
runtime.addBoundMethod("org.jruby.ext.securerandom.SecureRandomLibrary","hex","hex");
runtime.addBoundMethod("org.jruby.ext.securerandom.SecureRandomLibrary","random_bytes","random_bytes");
if (compatVersion.is1_9() || compatVersion == CompatVersion.BOTH) {
javaMethod = new org.jruby.ext.securerandom.SecureRandomLibrary$INVOKER$s$0$0$uuid(singletonClass, Visibility.PUBLIC);
populateMethod(javaMethod, 0, "uuid", true, CallConfiguration.FrameNoneScopeNone, false, org.jruby.ext.securerandom.SecureRandomLibrary.class, "uuid", org.jruby.runtime.builtin.IRubyObject.class, new Class[] {org.jruby.runtime.ThreadContext.class, org.jruby.runtime.builtin.IRubyObject.class});
singletonClass.addMethodAtBootTimeOnly("uuid", javaMethod);
runtime.addBoundMethod("org.jruby.ext.securerandom.SecureRandomLibrary","uuid","uuid");
}
}
static {
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy