Sha256: d79cc5faba5c4ff246f4fa69ad541222928156a0943cead500e5ecc402d7ad30

Contents?: true

Size: 983 Bytes

Versions: 5

Compression:

Stored size: 983 Bytes

Contents

package smile.xml;

import org.jruby.Ruby;
import org.jruby.RubyClass;
import org.jruby.RubyModule;
import org.jruby.RubyObject;
import org.jruby.runtime.ObjectAllocator;
import org.jruby.runtime.builtin.IRubyObject;
import smile.xml.util.UtilJ;

public class ReaderJ extends RubyObject
{
  private static final long serialVersionUID = -120431027715516425L;
  private static final ObjectAllocator ALLOCATOR = new ObjectAllocator()
  {
    public IRubyObject allocate(Ruby runtime, RubyClass klass)
    {
      return new ReaderJ(runtime, klass);
    }
  };

  private ReaderJ(Ruby runtime, RubyClass metaClass)
  {
    super(runtime, metaClass);
  }

  public static RubyClass define(Ruby runtime)
  {
    RubyModule module = UtilJ.getModule(runtime, new String[] { "LibXML", "XML" });
    RubyClass result = module.defineClassUnder("Reader", runtime.getObject(), ALLOCATOR);
    result.defineAnnotatedMethods(ReaderJ.class);
    return result;
  }
}

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
smile-xml-1.0.5-java src/main/java/smile/xml/ReaderJ.java
smile-xml-1.0.4-java src/main/java/smile/xml/ReaderJ.java
smile-xml-1.0.3-java src/main/java/smile/xml/ReaderJ.java
smile-xml-1.0.3-jruby src/main/java/smile/xml/ReaderJ.java
smile-xml-1.0.2-jruby src/main/java/smile/xml/ReaderJ.java