Sha256: 932a657eacf8a576c79001db522dd887de24adec4b8e23d08d003218f4e497ec

Contents?: true

Size: 990 Bytes

Versions: 23

Compression:

Stored size: 990 Bytes

Contents

package nokogiri;

import org.jruby.Ruby;
import org.jruby.RubyClass;
import org.jruby.anno.JRubyClass;
import org.jruby.runtime.ThreadContext;
import org.jruby.runtime.builtin.IRubyObject;
import org.w3c.dom.Element;
import org.w3c.dom.Node;

import nokogiri.internals.SaveContextVisitor;

/**
 * Class for Nokogiri::XML::Element
 *
 * @author sergio
 * @author Yoko Harada <yokolet@gamil.com>
 */
@JRubyClass(name = "Nokogiri::XML::Element", parent = "Nokogiri::XML::Node")
public class XmlElement extends XmlNode
{
  private static final long serialVersionUID = 1L;

  public
  XmlElement(Ruby runtime, RubyClass klazz)
  {
    super(runtime, klazz);
  }

  public
  XmlElement(Ruby runtime, RubyClass klazz, Node element)
  {
    super(runtime, klazz, element);
  }

  @Override
  public void
  accept(ThreadContext context, SaveContextVisitor visitor)
  {
    visitor.enter((Element) node);
    acceptChildren(context, getChildren(), visitor);
    visitor.leave((Element) node);
  }
}

Version data entries

23 entries across 23 versions & 2 rubygems

Version Path
nokogiri-1.14.1-java ext/java/nokogiri/XmlElement.java
nokogiri-1.14.0-java ext/java/nokogiri/XmlElement.java
nokogiri-1.14.0.rc1-java ext/java/nokogiri/XmlElement.java