Ruby runtime = cls.getRuntime(); javaMethod = new org.jruby.RubyConverter$EncodingErrorMethods$INVOKER$s$0$0$readagain_bytes(cls, Visibility.PUBLIC); populateMethod(javaMethod, 0, "readagain_bytes", true, CallConfiguration.FrameNoneScopeNone, false, org.jruby.RubyConverter.EncodingErrorMethods.class, "readagain_bytes", org.jruby.runtime.builtin.IRubyObject.class, new Class[] {org.jruby.runtime.ThreadContext.class, org.jruby.runtime.builtin.IRubyObject.class}); cls.addMethodAtBootTimeOnly("readagain_bytes", javaMethod); javaMethod = new org.jruby.RubyConverter$EncodingErrorMethods$INVOKER$s$0$0$source_encoding_name(cls, Visibility.PUBLIC); populateMethod(javaMethod, 0, "source_encoding_name", true, CallConfiguration.FrameNoneScopeNone, false, org.jruby.RubyConverter.EncodingErrorMethods.class, "source_encoding_name", org.jruby.runtime.builtin.IRubyObject.class, new Class[] {org.jruby.runtime.ThreadContext.class, org.jruby.runtime.builtin.IRubyObject.class}); cls.addMethodAtBootTimeOnly("source_encoding_name", javaMethod); javaMethod = new org.jruby.RubyConverter$EncodingErrorMethods$INVOKER$s$0$0$error_char(cls, Visibility.PUBLIC); populateMethod(javaMethod, 0, "error_char", true, CallConfiguration.FrameNoneScopeNone, false, org.jruby.RubyConverter.EncodingErrorMethods.class, "error_char", org.jruby.runtime.builtin.IRubyObject.class, new Class[] {org.jruby.runtime.ThreadContext.class, org.jruby.runtime.builtin.IRubyObject.class}); cls.addMethodAtBootTimeOnly("error_char", javaMethod); javaMethod = new org.jruby.RubyConverter$EncodingErrorMethods$INVOKER$s$0$0$incomplete_input_p(cls, Visibility.PUBLIC); populateMethod(javaMethod, 0, "incomplete_input_p", true, CallConfiguration.FrameNoneScopeNone, false, org.jruby.RubyConverter.EncodingErrorMethods.class, "incomplete_input_p", org.jruby.runtime.builtin.IRubyObject.class, new Class[] {org.jruby.runtime.ThreadContext.class, org.jruby.runtime.builtin.IRubyObject.class}); cls.addMethodAtBootTimeOnly("incomplete_input?", javaMethod); javaMethod = new org.jruby.RubyConverter$EncodingErrorMethods$INVOKER$s$0$0$source_encoding(cls, Visibility.PUBLIC); populateMethod(javaMethod, 0, "source_encoding", true, CallConfiguration.FrameNoneScopeNone, false, org.jruby.RubyConverter.EncodingErrorMethods.class, "source_encoding", org.jruby.runtime.builtin.IRubyObject.class, new Class[] {org.jruby.runtime.ThreadContext.class, org.jruby.runtime.builtin.IRubyObject.class}); cls.addMethodAtBootTimeOnly("source_encoding", javaMethod); javaMethod = new org.jruby.RubyConverter$EncodingErrorMethods$INVOKER$s$0$0$destination_encoding_name(cls, Visibility.PUBLIC); populateMethod(javaMethod, 0, "destination_encoding_name", true, CallConfiguration.FrameNoneScopeNone, false, org.jruby.RubyConverter.EncodingErrorMethods.class, "destination_encoding_name", org.jruby.runtime.builtin.IRubyObject.class, new Class[] {org.jruby.runtime.ThreadContext.class, org.jruby.runtime.builtin.IRubyObject.class}); cls.addMethodAtBootTimeOnly("destination_encoding_name", javaMethod); javaMethod = new org.jruby.RubyConverter$EncodingErrorMethods$INVOKER$s$0$0$destination_encoding(cls, Visibility.PUBLIC); populateMethod(javaMethod, 0, "destination_encoding", true, CallConfiguration.FrameNoneScopeNone, false, org.jruby.RubyConverter.EncodingErrorMethods.class, "destination_encoding", org.jruby.runtime.builtin.IRubyObject.class, new Class[] {org.jruby.runtime.ThreadContext.class, org.jruby.runtime.builtin.IRubyObject.class}); cls.addMethodAtBootTimeOnly("destination_encoding", javaMethod); runtime.addBoundMethod("org.jruby.RubyConverter.EncodingErrorMethods","readagain_bytes","readagain_bytes");
Ruby runtime = cls.getRuntime(); javaMethod = new org.jruby.RubyConverter$EncodingErrorMethods$INVOKER$s$0$0$destination_encoding(cls, Visibility.PUBLIC); populateMethod(javaMethod, 0, "destination_encoding", true, CallConfiguration.FrameNoneScopeNone, false, org.jruby.RubyConverter.EncodingErrorMethods.class, "destination_encoding", org.jruby.runtime.builtin.IRubyObject.class, new Class[] {org.jruby.runtime.ThreadContext.class, org.jruby.runtime.builtin.IRubyObject.class}); cls.addMethodAtBootTimeOnly("destination_encoding", javaMethod); javaMethod = new org.jruby.RubyConverter$EncodingErrorMethods$INVOKER$s$0$0$error_char(cls, Visibility.PUBLIC); populateMethod(javaMethod, 0, "error_char", true, CallConfiguration.FrameNoneScopeNone, false, org.jruby.RubyConverter.EncodingErrorMethods.class, "error_char", org.jruby.runtime.builtin.IRubyObject.class, new Class[] {org.jruby.runtime.ThreadContext.class, org.jruby.runtime.builtin.IRubyObject.class}); cls.addMethodAtBootTimeOnly("error_char", javaMethod); javaMethod = new org.jruby.RubyConverter$EncodingErrorMethods$INVOKER$s$0$0$source_encoding(cls, Visibility.PUBLIC); populateMethod(javaMethod, 0, "source_encoding", true, CallConfiguration.FrameNoneScopeNone, false, org.jruby.RubyConverter.EncodingErrorMethods.class, "source_encoding", org.jruby.runtime.builtin.IRubyObject.class, new Class[] {org.jruby.runtime.ThreadContext.class, org.jruby.runtime.builtin.IRubyObject.class}); cls.addMethodAtBootTimeOnly("source_encoding", javaMethod); javaMethod = new org.jruby.RubyConverter$EncodingErrorMethods$INVOKER$s$0$0$destination_encoding_name(cls, Visibility.PUBLIC); populateMethod(javaMethod, 0, "destination_encoding_name", true, CallConfiguration.FrameNoneScopeNone, false, org.jruby.RubyConverter.EncodingErrorMethods.class, "destination_encoding_name", org.jruby.runtime.builtin.IRubyObject.class, new Class[] {org.jruby.runtime.ThreadContext.class, org.jruby.runtime.builtin.IRubyObject.class}); cls.addMethodAtBootTimeOnly("destination_encoding_name", javaMethod); javaMethod = new org.jruby.RubyConverter$EncodingErrorMethods$INVOKER$s$0$0$source_encoding_name(cls, Visibility.PUBLIC); populateMethod(javaMethod, 0, "source_encoding_name", true, CallConfiguration.FrameNoneScopeNone, false, org.jruby.RubyConverter.EncodingErrorMethods.class, "source_encoding_name", org.jruby.runtime.builtin.IRubyObject.class, new Class[] {org.jruby.runtime.ThreadContext.class, org.jruby.runtime.builtin.IRubyObject.class}); cls.addMethodAtBootTimeOnly("source_encoding_name", javaMethod); javaMethod = new org.jruby.RubyConverter$EncodingErrorMethods$INVOKER$s$0$0$incomplete_input_p(cls, Visibility.PUBLIC); populateMethod(javaMethod, 0, "incomplete_input_p", true, CallConfiguration.FrameNoneScopeNone, false, org.jruby.RubyConverter.EncodingErrorMethods.class, "incomplete_input_p", org.jruby.runtime.builtin.IRubyObject.class, new Class[] {org.jruby.runtime.ThreadContext.class, org.jruby.runtime.builtin.IRubyObject.class}); cls.addMethodAtBootTimeOnly("incomplete_input?", javaMethod); javaMethod = new org.jruby.RubyConverter$EncodingErrorMethods$INVOKER$s$0$0$readagain_bytes(cls, Visibility.PUBLIC); populateMethod(javaMethod, 0, "readagain_bytes", true, CallConfiguration.FrameNoneScopeNone, false, org.jruby.RubyConverter.EncodingErrorMethods.class, "readagain_bytes", org.jruby.runtime.builtin.IRubyObject.class, new Class[] {org.jruby.runtime.ThreadContext.class, org.jruby.runtime.builtin.IRubyObject.class}); cls.addMethodAtBootTimeOnly("readagain_bytes", javaMethod); runtime.addBoundMethod("org.jruby.RubyConverter.EncodingErrorMethods","destination_encoding","destination_encoding");
public void populate(RubyModule cls, Class clazz) { JavaMethod javaMethod; DynamicMethod moduleMethod, aliasedMethod; Ruby runtime = cls.getRuntime(); javaMethod = new org.jruby.RubyConverter$EncodingErrorMethods$INVOKER$s$0$0$destination_encoding(cls, Visibility.PUBLIC, "destination_encoding"); populateMethod(javaMethod, 0, "destination_encoding", true, false, org.jruby.RubyConverter.EncodingErrorMethods.class, "destination_encoding", org.jruby.runtime.builtin.IRubyObject.class, CONTEXT_ARG1); aliasedMethod = cls.putMethod(runtime, "destination_encoding", javaMethod); javaMethod = new org.jruby.RubyConverter$EncodingErrorMethods$INVOKER$s$0$0$source_encoding(cls, Visibility.PUBLIC, "source_encoding"); populateMethod(javaMethod, 0, "source_encoding", true, false, org.jruby.RubyConverter.EncodingErrorMethods.class, "source_encoding", org.jruby.runtime.builtin.IRubyObject.class, CONTEXT_ARG1); aliasedMethod = cls.putMethod(runtime, "source_encoding", javaMethod); javaMethod = new org.jruby.RubyConverter$EncodingErrorMethods$INVOKER$s$0$0$source_encoding_name(cls, Visibility.PUBLIC, "source_encoding_name"); populateMethod(javaMethod, 0, "source_encoding_name", true, false, org.jruby.RubyConverter.EncodingErrorMethods.class, "source_encoding_name", org.jruby.runtime.builtin.IRubyObject.class, CONTEXT_ARG1); aliasedMethod = cls.putMethod(runtime, "source_encoding_name", javaMethod); javaMethod = new org.jruby.RubyConverter$EncodingErrorMethods$INVOKER$s$0$0$destination_encoding_name(cls, Visibility.PUBLIC, "destination_encoding_name"); populateMethod(javaMethod, 0, "destination_encoding_name", true, false, org.jruby.RubyConverter.EncodingErrorMethods.class, "destination_encoding_name", org.jruby.runtime.builtin.IRubyObject.class, CONTEXT_ARG1); aliasedMethod = cls.putMethod(runtime, "destination_encoding_name", javaMethod); runtime.addBoundMethods("org.jruby.RubyConverter.EncodingErrorMethods", "destination_encoding", "destination_encoding", "source_encoding", "source_encoding", "source_encoding_name", "source_encoding_name", "destination_encoding_name", "destination_encoding_name"); } static {
public void populate(RubyModule cls, Class clazz) { JavaMethod javaMethod; DynamicMethod moduleMethod, aliasedMethod; Ruby runtime = cls.getRuntime(); javaMethod = new org.jruby.RubyConverter$EncodingErrorMethods$INVOKER$s$0$0$destination_encoding(cls, Visibility.PUBLIC, "destination_encoding"); populateMethod(javaMethod, 0, "destination_encoding", true, false, org.jruby.RubyConverter.EncodingErrorMethods.class, "destination_encoding", org.jruby.runtime.builtin.IRubyObject.class, CONTEXT_ARG1); aliasedMethod = cls.putMethod(runtime, "destination_encoding", javaMethod); javaMethod = new org.jruby.RubyConverter$EncodingErrorMethods$INVOKER$s$0$0$source_encoding(cls, Visibility.PUBLIC, "source_encoding"); populateMethod(javaMethod, 0, "source_encoding", true, false, org.jruby.RubyConverter.EncodingErrorMethods.class, "source_encoding", org.jruby.runtime.builtin.IRubyObject.class, CONTEXT_ARG1); aliasedMethod = cls.putMethod(runtime, "source_encoding", javaMethod); javaMethod = new org.jruby.RubyConverter$EncodingErrorMethods$INVOKER$s$0$0$source_encoding_name(cls, Visibility.PUBLIC, "source_encoding_name"); populateMethod(javaMethod, 0, "source_encoding_name", true, false, org.jruby.RubyConverter.EncodingErrorMethods.class, "source_encoding_name", org.jruby.runtime.builtin.IRubyObject.class, CONTEXT_ARG1); aliasedMethod = cls.putMethod(runtime, "source_encoding_name", javaMethod); javaMethod = new org.jruby.RubyConverter$EncodingErrorMethods$INVOKER$s$0$0$destination_encoding_name(cls, Visibility.PUBLIC, "destination_encoding_name"); populateMethod(javaMethod, 0, "destination_encoding_name", true, false, org.jruby.RubyConverter.EncodingErrorMethods.class, "destination_encoding_name", org.jruby.runtime.builtin.IRubyObject.class, CONTEXT_ARG1); aliasedMethod = cls.putMethod(runtime, "destination_encoding_name", javaMethod); runtime.addBoundMethods("org.jruby.RubyConverter.EncodingErrorMethods", "destination_encoding", "destination_encoding", "source_encoding", "source_encoding", "source_encoding_name", "source_encoding_name", "destination_encoding_name", "destination_encoding_name"); } static {