com.caucho.xpath.pattern
Class SelectedNode

java.lang.Object
  extended by com.caucho.xpath.pattern.SelectedNode
Direct Known Subclasses:
SelectedAttribute

public class SelectedNode
extends java.lang.Object

Represents a selected node.


Field Summary
protected  int _depth
           
protected  int _level
           
protected  org.w3c.dom.Node _node
           
 
Constructor Summary
SelectedNode(org.w3c.dom.Node node)
          Creates new selected node, calculating the index.
 
Method Summary
 int compareTo(SelectedNode b)
          Returns the node's index
 org.w3c.dom.Node getNode()
          Returns the underlying DOM node.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_node

protected org.w3c.dom.Node _node

_depth

protected int _depth

_level

protected int _level
Constructor Detail

SelectedNode

public SelectedNode(org.w3c.dom.Node node)
Creates new selected node, calculating the index.

Parameters:
node - the underlying DOM node.
Method Detail

getNode

public org.w3c.dom.Node getNode()
Returns the underlying DOM node.


compareTo

public int compareTo(SelectedNode b)
Returns the node's index