blob: 89036a0500298fc097e4cd57c705605a6348a42b [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.5.0_18) on Sun Apr 01 21:18:39 PDT 2012 -->
<TITLE>
NodeSet
</TITLE>
<META NAME="keywords" CONTENT="org.apache.xpath.NodeSet class">
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style">
<SCRIPT type="text/javascript">
function windowTitle()
{
parent.document.title="NodeSet";
}
</SCRIPT>
<NOSCRIPT>
</NOSCRIPT>
</HEAD>
<BODY BGCOLOR="white" onload="windowTitle();">
<!-- ========= START OF TOP NAVBAR ======= -->
<A NAME="navbar_top"><!-- --></A>
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_top_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/NodeSet.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../../org/apache/xpath/FoundIndex.html" title="class in org.apache.xpath"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../org/apache/xpath/NodeSetDTM.html" title="class in org.apache.xpath"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../index.html?org/apache/xpath/NodeSet.html" target="_top"><B>FRAMES</B></A> &nbsp;
&nbsp;<A HREF="NodeSet.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
&nbsp;<SCRIPT type="text/javascript">
<!--
if(window==top) {
document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
}
//-->
</SCRIPT>
<NOSCRIPT>
<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>
</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_top"></A>
<!-- ========= END OF TOP NAVBAR ========= -->
<HR>
<!-- ======== START OF CLASS DATA ======== -->
<H2>
<FONT SIZE="-1">
org.apache.xpath</FONT>
<BR>
Class NodeSet</H2>
<PRE>
java.lang.Object
<IMG SRC="../../../resources/inherit.gif" ALT="extended by "><B>org.apache.xpath.NodeSet</B>
</PRE>
<DL>
<DT><B>All Implemented Interfaces:</B> <DD>java.lang.Cloneable, <A HREF="../../../org/apache/xpath/axes/ContextNodeList.html" title="interface in org.apache.xpath.axes">ContextNodeList</A>, org.w3c.dom.NodeList, org.w3c.dom.traversal.NodeIterator</DD>
</DL>
<HR>
<DL>
<DT><PRE>public class <A HREF="../../../src-html/org/apache/xpath/NodeSet.html#line.59"><B>NodeSet</B></A><DT>extends java.lang.Object<DT>implements org.w3c.dom.NodeList, org.w3c.dom.traversal.NodeIterator, java.lang.Cloneable, <A HREF="../../../org/apache/xpath/axes/ContextNodeList.html" title="interface in org.apache.xpath.axes">ContextNodeList</A></DL>
</PRE>
<P>
<p>The NodeSet class can act as either a NodeVector,
NodeList, or NodeIterator. However, in order for it to
act as a NodeVector or NodeList, it's required that
setShouldCacheNodes(true) be called before the first
nextNode() is called, in order that nodes can be added
as they are fetched. Derived classes that implement iterators
must override runTo(int index), in order that they may
run the iteration to the given index. </p>
<p>Note that we directly implement the DOM's NodeIterator
interface. We do not emulate all the behavior of the
standard NodeIterator. In particular, we do not guarantee
to present a "live view" of the document ... but in XSLT,
the source document should never be mutated, so this should
never be an issue.</p>
<p>Thought: Should NodeSet really implement NodeList and NodeIterator,
or should there be specific subclasses of it which do so? The
advantage of doing it all here is that all NodeSets will respond
to the same calls; the disadvantage is that some of them may return
less-than-enlightening results when you do so.</p>
<P>
<P>
<HR>
<P>
<!-- =========== FIELD SUMMARY =========== -->
<A NAME="field_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Field Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>private &nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/apache/xpath/NodeSet.html#m_blocksize">m_blocksize</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Size of blocks to allocate.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/apache/xpath/NodeSet.html#m_cacheNodes">m_cacheNodes</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;True if this list is cached.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/apache/xpath/NodeSet.html#m_firstFree">m_firstFree</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Number of nodes in this NodeVector.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>private &nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/apache/xpath/NodeSet.html#m_last">m_last</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>(package private) &nbsp;org.w3c.dom.Node[]</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/apache/xpath/NodeSet.html#m_map">m_map</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Array of nodes this points to.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>private &nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/apache/xpath/NodeSet.html#m_mapSize">m_mapSize</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Size of the array this points to.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/apache/xpath/NodeSet.html#m_mutable">m_mutable</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;True if this list can be mutated.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/apache/xpath/NodeSet.html#m_next">m_next</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;If this node is being used as an iterator, the next index that nextNode()
will return.</TD>
</TR>
</TABLE>
&nbsp;
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<A NAME="constructor_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Constructor Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../org/apache/xpath/NodeSet.html#NodeSet()">NodeSet</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Create an empty nodelist.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../org/apache/xpath/NodeSet.html#NodeSet(int)">NodeSet</A></B>(int&nbsp;blocksize)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Create an empty, using the given block size.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../org/apache/xpath/NodeSet.html#NodeSet(org.w3c.dom.Node)">NodeSet</A></B>(org.w3c.dom.Node&nbsp;node)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Create a NodeSet which contains the given Node.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../org/apache/xpath/NodeSet.html#NodeSet(org.w3c.dom.traversal.NodeIterator)">NodeSet</A></B>(org.w3c.dom.traversal.NodeIterator&nbsp;ni)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Create a NodeSet, and copy the members of the
given NodeIterator into it.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../org/apache/xpath/NodeSet.html#NodeSet(org.w3c.dom.NodeList)">NodeSet</A></B>(org.w3c.dom.NodeList&nbsp;nodelist)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Create a NodeSet, and copy the members of the
given nodelist into it.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../org/apache/xpath/NodeSet.html#NodeSet(org.apache.xpath.NodeSet)">NodeSet</A></B>(<A HREF="../../../org/apache/xpath/NodeSet.html" title="class in org.apache.xpath">NodeSet</A>&nbsp;nodelist)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Create a NodeSet, and copy the members of the
given NodeSet into it.</TD>
</TR>
</TABLE>
&nbsp;
<!-- ========== METHOD SUMMARY =========== -->
<A NAME="method_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Method Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/apache/xpath/NodeSet.html#addElement(org.w3c.dom.Node)">addElement</A></B>(org.w3c.dom.Node&nbsp;value)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Append a Node onto the vector.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/apache/xpath/NodeSet.html#addNode(org.w3c.dom.Node)">addNode</A></B>(org.w3c.dom.Node&nbsp;n)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Add a node to the NodeSet.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/apache/xpath/NodeSet.html#addNodeInDocOrder(org.w3c.dom.Node, boolean, org.apache.xpath.XPathContext)">addNodeInDocOrder</A></B>(org.w3c.dom.Node&nbsp;node,
boolean&nbsp;test,
<A HREF="../../../org/apache/xpath/XPathContext.html" title="class in org.apache.xpath">XPathContext</A>&nbsp;support)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Add the node into a vector of nodes where it should occur in
document order.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/apache/xpath/NodeSet.html#addNodeInDocOrder(org.w3c.dom.Node, org.apache.xpath.XPathContext)">addNodeInDocOrder</A></B>(org.w3c.dom.Node&nbsp;node,
<A HREF="../../../org/apache/xpath/XPathContext.html" title="class in org.apache.xpath">XPathContext</A>&nbsp;support)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Add the node into a vector of nodes where it should occur in
document order.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/apache/xpath/NodeSet.html#addNodes(org.w3c.dom.traversal.NodeIterator)">addNodes</A></B>(org.w3c.dom.traversal.NodeIterator&nbsp;iterator)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Copy NodeList members into this nodelist, adding in
document order.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/apache/xpath/NodeSet.html#addNodes(org.w3c.dom.NodeList)">addNodes</A></B>(org.w3c.dom.NodeList&nbsp;nodelist)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Copy NodeList members into this nodelist, adding in
document order.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/apache/xpath/NodeSet.html#addNodes(org.apache.xpath.NodeSet)">addNodes</A></B>(<A HREF="../../../org/apache/xpath/NodeSet.html" title="class in org.apache.xpath">NodeSet</A>&nbsp;ns)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Copy NodeList members into this nodelist, adding in
document order.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>private &nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/apache/xpath/NodeSet.html#addNodesInDocOrder(int, int, int, org.w3c.dom.NodeList, org.apache.xpath.XPathContext)">addNodesInDocOrder</A></B>(int&nbsp;start,
int&nbsp;end,
int&nbsp;testIndex,
org.w3c.dom.NodeList&nbsp;nodelist,
<A HREF="../../../org/apache/xpath/XPathContext.html" title="class in org.apache.xpath">XPathContext</A>&nbsp;support)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Add the node list to this node set in document order.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/apache/xpath/NodeSet.html#addNodesInDocOrder(org.w3c.dom.traversal.NodeIterator, org.apache.xpath.XPathContext)">addNodesInDocOrder</A></B>(org.w3c.dom.traversal.NodeIterator&nbsp;iterator,
<A HREF="../../../org/apache/xpath/XPathContext.html" title="class in org.apache.xpath">XPathContext</A>&nbsp;support)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Copy NodeList members into this nodelist, adding in
document order.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/apache/xpath/NodeSet.html#addNodesInDocOrder(org.w3c.dom.NodeList, org.apache.xpath.XPathContext)">addNodesInDocOrder</A></B>(org.w3c.dom.NodeList&nbsp;nodelist,
<A HREF="../../../org/apache/xpath/XPathContext.html" title="class in org.apache.xpath">XPathContext</A>&nbsp;support)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Copy NodeList members into this nodelist, adding in
document order.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/apache/xpath/NodeSet.html#appendNodes(org.apache.xpath.NodeSet)">appendNodes</A></B>(<A HREF="../../../org/apache/xpath/NodeSet.html" title="class in org.apache.xpath">NodeSet</A>&nbsp;nodes)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Append the nodes to the list.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.lang.Object</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/apache/xpath/NodeSet.html#clone()">clone</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get a cloned LocPathIterator.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;org.w3c.dom.traversal.NodeIterator</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/apache/xpath/NodeSet.html#cloneWithReset()">cloneWithReset</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get a cloned Iterator, and reset its state to the beginning of the
iteration.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/apache/xpath/NodeSet.html#contains(org.w3c.dom.Node)">contains</A></B>(org.w3c.dom.Node&nbsp;s)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Tell if the table contains the given node.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/apache/xpath/NodeSet.html#detach()">detach</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Detaches the iterator from the set which it iterated over, releasing
any computational resources and placing the iterator in the INVALID
state.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;org.w3c.dom.Node</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/apache/xpath/NodeSet.html#elementAt(int)">elementAt</A></B>(int&nbsp;i)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the nth element.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;org.w3c.dom.Node</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/apache/xpath/NodeSet.html#getCurrentNode()">getCurrentNode</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the last fetched node.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/apache/xpath/NodeSet.html#getCurrentPos()">getCurrentPos</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the current position, which is one less than
the next nextNode() call will retrieve.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/apache/xpath/NodeSet.html#getExpandEntityReferences()">getExpandEntityReferences</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The value of this flag determines whether the children of entity
reference nodes are visible to the iterator.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;org.w3c.dom.traversal.NodeFilter</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/apache/xpath/NodeSet.html#getFilter()">getFilter</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The filter object used to screen nodes.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/apache/xpath/NodeSet.html#getLast()">getLast</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the index of the last node in this list.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/apache/xpath/NodeSet.html#getLength()">getLength</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The number of nodes in the list.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;org.w3c.dom.Node</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/apache/xpath/NodeSet.html#getRoot()">getRoot</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/apache/xpath/NodeSet.html#getShouldCacheNodes()">getShouldCacheNodes</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get whether or not this is a cached node set.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/apache/xpath/NodeSet.html#getWhatToShow()">getWhatToShow</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This attribute determines which node types are presented via the
iterator.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/apache/xpath/NodeSet.html#indexOf(org.w3c.dom.Node)">indexOf</A></B>(org.w3c.dom.Node&nbsp;elem)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Searches for the first occurence of the given argument,
beginning the search at index, and testing for equality
using the equals method.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/apache/xpath/NodeSet.html#indexOf(org.w3c.dom.Node, int)">indexOf</A></B>(org.w3c.dom.Node&nbsp;elem,
int&nbsp;index)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Searches for the first occurence of the given argument,
beginning the search at index, and testing for equality
using the equals method.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/apache/xpath/NodeSet.html#insertElementAt(org.w3c.dom.Node, int)">insertElementAt</A></B>(org.w3c.dom.Node&nbsp;value,
int&nbsp;at)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Inserts the specified node in this vector at the specified index.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/apache/xpath/NodeSet.html#insertNode(org.w3c.dom.Node, int)">insertNode</A></B>(org.w3c.dom.Node&nbsp;n,
int&nbsp;pos)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Insert a node at a given position.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/apache/xpath/NodeSet.html#isFresh()">isFresh</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Tells if this NodeSet is "fresh", in other words, if
the first nextNode() that is called will return the
first node in the set.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;org.w3c.dom.Node</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/apache/xpath/NodeSet.html#item(int)">item</A></B>(int&nbsp;index)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the <code>index</code>th item in the collection.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;org.w3c.dom.Node</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/apache/xpath/NodeSet.html#nextNode()">nextNode</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the next node in the set and advances the position of the
iterator in the set.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;org.w3c.dom.Node</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/apache/xpath/NodeSet.html#peepOrNull()">peepOrNull</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the node at the top of the stack without popping the stack.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;org.w3c.dom.Node</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/apache/xpath/NodeSet.html#peepTail()">peepTail</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the node at the tail of the vector without popping
Special purpose method for TransformerImpl, pushElemTemplateElement.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;org.w3c.dom.Node</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/apache/xpath/NodeSet.html#peepTailSub1()">peepTailSub1</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the node one position from the tail without popping.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;org.w3c.dom.Node</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/apache/xpath/NodeSet.html#pop()">pop</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Pop a node from the tail of the vector and return the result.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;org.w3c.dom.Node</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/apache/xpath/NodeSet.html#popAndTop()">popAndTop</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Pop a node from the tail of the vector and return the
top of the stack after the pop.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/apache/xpath/NodeSet.html#popPair()">popPair</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Pop a pair of nodes from the tail of the stack.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/apache/xpath/NodeSet.html#popQuick()">popQuick</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Pop a node from the tail of the vector.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;org.w3c.dom.Node</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/apache/xpath/NodeSet.html#previousNode()">previousNode</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the previous node in the set and moves the position of the
iterator backwards in the set.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/apache/xpath/NodeSet.html#push(org.w3c.dom.Node)">push</A></B>(org.w3c.dom.Node&nbsp;value)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Append a Node onto the vector.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/apache/xpath/NodeSet.html#pushPair(org.w3c.dom.Node, org.w3c.dom.Node)">pushPair</A></B>(org.w3c.dom.Node&nbsp;v1,
org.w3c.dom.Node&nbsp;v2)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Push a pair of nodes into the stack.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/apache/xpath/NodeSet.html#removeAllElements()">removeAllElements</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Inserts the specified node in this vector at the specified index.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/apache/xpath/NodeSet.html#removeElement(org.w3c.dom.Node)">removeElement</A></B>(org.w3c.dom.Node&nbsp;s)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Removes the first occurrence of the argument from this vector.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/apache/xpath/NodeSet.html#removeElementAt(int)">removeElementAt</A></B>(int&nbsp;i)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Deletes the component at the specified index.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/apache/xpath/NodeSet.html#removeNode(org.w3c.dom.Node)">removeNode</A></B>(org.w3c.dom.Node&nbsp;n)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Remove a node.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/apache/xpath/NodeSet.html#reset()">reset</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Reset the iterator.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/apache/xpath/NodeSet.html#runTo(int)">runTo</A></B>(int&nbsp;index)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;If an index is requested, NodeSet will call this method
to run the iterator to the index.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/apache/xpath/NodeSet.html#setCurrentPos(int)">setCurrentPos</A></B>(int&nbsp;i)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the current position in the node set.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/apache/xpath/NodeSet.html#setElementAt(org.w3c.dom.Node, int)">setElementAt</A></B>(org.w3c.dom.Node&nbsp;node,
int&nbsp;index)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the component at the specified index of this vector to be the
specified object.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/apache/xpath/NodeSet.html#setLast(int)">setLast</A></B>(int&nbsp;last)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the index of the last node in this list.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/apache/xpath/NodeSet.html#setShouldCacheNodes(boolean)">setShouldCacheNodes</A></B>(boolean&nbsp;b)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;If setShouldCacheNodes(true) is called, then nodes will
be cached.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/apache/xpath/NodeSet.html#setTail(org.w3c.dom.Node)">setTail</A></B>(org.w3c.dom.Node&nbsp;n)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the tail of the stack to the given node.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/apache/xpath/NodeSet.html#setTailSub1(org.w3c.dom.Node)">setTailSub1</A></B>(org.w3c.dom.Node&nbsp;n)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the given node one position from the tail.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/apache/xpath/NodeSet.html#size()">size</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the length of the list.</TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE>equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
</TR>
</TABLE>
&nbsp;
<P>
<!-- ============ FIELD DETAIL =========== -->
<A NAME="field_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Field Detail</B></FONT></TH>
</TR>
</TABLE>
<A NAME="m_next"><!-- --></A><H3>
m_next</H3>
<PRE>
protected transient int <A HREF="../../../src-html/org/apache/xpath/NodeSet.html#line.718"><B>m_next</B></A></PRE>
<DL>
<DD>If this node is being used as an iterator, the next index that nextNode()
will return.
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="m_mutable"><!-- --></A><H3>
m_mutable</H3>
<PRE>
protected transient boolean <A HREF="../../../src-html/org/apache/xpath/NodeSet.html#line.770"><B>m_mutable</B></A></PRE>
<DL>
<DD>True if this list can be mutated.
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="m_cacheNodes"><!-- --></A><H3>
m_cacheNodes</H3>
<PRE>
protected transient boolean <A HREF="../../../src-html/org/apache/xpath/NodeSet.html#line.774"><B>m_cacheNodes</B></A></PRE>
<DL>
<DD>True if this list is cached.
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="m_last"><!-- --></A><H3>
m_last</H3>
<PRE>
private transient int <A HREF="../../../src-html/org/apache/xpath/NodeSet.html#line.810"><B>m_last</B></A></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>
<A NAME="m_blocksize"><!-- --></A><H3>
m_blocksize</H3>
<PRE>
private int <A HREF="../../../src-html/org/apache/xpath/NodeSet.html#line.824"><B>m_blocksize</B></A></PRE>
<DL>
<DD>Size of blocks to allocate.
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="m_map"><!-- --></A><H3>
m_map</H3>
<PRE>
org.w3c.dom.Node[] <A HREF="../../../src-html/org/apache/xpath/NodeSet.html#line.828"><B>m_map</B></A></PRE>
<DL>
<DD>Array of nodes this points to.
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="m_firstFree"><!-- --></A><H3>
m_firstFree</H3>
<PRE>
protected int <A HREF="../../../src-html/org/apache/xpath/NodeSet.html#line.832"><B>m_firstFree</B></A></PRE>
<DL>
<DD>Number of nodes in this NodeVector.
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="m_mapSize"><!-- --></A><H3>
m_mapSize</H3>
<PRE>
private int <A HREF="../../../src-html/org/apache/xpath/NodeSet.html#line.836"><B>m_mapSize</B></A></PRE>
<DL>
<DD>Size of the array this points to.
<P>
<DL>
</DL>
</DL>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<A NAME="constructor_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Constructor Detail</B></FONT></TH>
</TR>
</TABLE>
<A NAME="NodeSet()"><!-- --></A><H3>
NodeSet</H3>
<PRE>
public <A HREF="../../../src-html/org/apache/xpath/NodeSet.html#line.66"><B>NodeSet</B></A>()</PRE>
<DL>
<DD>Create an empty nodelist.
<P>
</DL>
<HR>
<A NAME="NodeSet(int)"><!-- --></A><H3>
NodeSet</H3>
<PRE>
public <A HREF="../../../src-html/org/apache/xpath/NodeSet.html#line.77"><B>NodeSet</B></A>(int&nbsp;blocksize)</PRE>
<DL>
<DD>Create an empty, using the given block size.
<P>
<DL>
<DT><B>Parameters:</B><DD><CODE>blocksize</CODE> - Size of blocks to allocate</DL>
</DL>
<HR>
<A NAME="NodeSet(org.w3c.dom.NodeList)"><!-- --></A><H3>
NodeSet</H3>
<PRE>
public <A HREF="../../../src-html/org/apache/xpath/NodeSet.html#line.89"><B>NodeSet</B></A>(org.w3c.dom.NodeList&nbsp;nodelist)</PRE>
<DL>
<DD>Create a NodeSet, and copy the members of the
given nodelist into it.
<P>
<DL>
<DT><B>Parameters:</B><DD><CODE>nodelist</CODE> - List of Nodes to be made members of the new set.</DL>
</DL>
<HR>
<A NAME="NodeSet(org.apache.xpath.NodeSet)"><!-- --></A><H3>
NodeSet</H3>
<PRE>
public <A HREF="../../../src-html/org/apache/xpath/NodeSet.html#line.103"><B>NodeSet</B></A>(<A HREF="../../../org/apache/xpath/NodeSet.html" title="class in org.apache.xpath">NodeSet</A>&nbsp;nodelist)</PRE>
<DL>
<DD>Create a NodeSet, and copy the members of the
given NodeSet into it.
<P>
<DL>
<DT><B>Parameters:</B><DD><CODE>nodelist</CODE> - Set of Nodes to be made members of the new set.</DL>
</DL>
<HR>
<A NAME="NodeSet(org.w3c.dom.traversal.NodeIterator)"><!-- --></A><H3>
NodeSet</H3>
<PRE>
public <A HREF="../../../src-html/org/apache/xpath/NodeSet.html#line.117"><B>NodeSet</B></A>(org.w3c.dom.traversal.NodeIterator&nbsp;ni)</PRE>
<DL>
<DD>Create a NodeSet, and copy the members of the
given NodeIterator into it.
<P>
<DL>
<DT><B>Parameters:</B><DD><CODE>ni</CODE> - Iterator which yields Nodes to be made members of the new set.</DL>
</DL>
<HR>
<A NAME="NodeSet(org.w3c.dom.Node)"><!-- --></A><H3>
NodeSet</H3>
<PRE>
public <A HREF="../../../src-html/org/apache/xpath/NodeSet.html#line.130"><B>NodeSet</B></A>(org.w3c.dom.Node&nbsp;node)</PRE>
<DL>
<DD>Create a NodeSet which contains the given Node.
<P>
<DL>
<DT><B>Parameters:</B><DD><CODE>node</CODE> - Single node to be added to the new set.</DL>
</DL>
<!-- ============ METHOD DETAIL ========== -->
<A NAME="method_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Method Detail</B></FONT></TH>
</TR>
</TABLE>
<A NAME="getRoot()"><!-- --></A><H3>
getRoot</H3>
<PRE>
public org.w3c.dom.Node <A HREF="../../../src-html/org/apache/xpath/NodeSet.html#line.142"><B>getRoot</B></A>()</PRE>
<DL>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE>getRoot</CODE> in interface <CODE>org.w3c.dom.traversal.NodeIterator</CODE></DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>The root node of the Iterator, as specified when it was created.
For non-Iterator NodeSets, this will be null.</DL>
</DD>
</DL>
<HR>
<A NAME="cloneWithReset()"><!-- --></A><H3>
cloneWithReset</H3>
<PRE>
public org.w3c.dom.traversal.NodeIterator <A HREF="../../../src-html/org/apache/xpath/NodeSet.html#line.157"><B>cloneWithReset</B></A>()
throws java.lang.CloneNotSupportedException</PRE>
<DL>
<DD>Get a cloned Iterator, and reset its state to the beginning of the
iteration.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/apache/xpath/axes/ContextNodeList.html#cloneWithReset()">cloneWithReset</A></CODE> in interface <CODE><A HREF="../../../org/apache/xpath/axes/ContextNodeList.html" title="interface in org.apache.xpath.axes">ContextNodeList</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>a new NodeSet of the same type, having the same state...
except that the reset() operation has been called.
<DT><B>Throws:</B>
<DD><CODE>java.lang.CloneNotSupportedException</CODE> - if this subclass of NodeSet
does not support the clone() operation.</DL>
</DD>
</DL>
<HR>
<A NAME="reset()"><!-- --></A><H3>
reset</H3>
<PRE>
public void <A HREF="../../../src-html/org/apache/xpath/NodeSet.html#line.170"><B>reset</B></A>()</PRE>
<DL>
<DD>Reset the iterator. May have no effect on non-iterator Nodesets.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/apache/xpath/axes/ContextNodeList.html#reset()">reset</A></CODE> in interface <CODE><A HREF="../../../org/apache/xpath/axes/ContextNodeList.html" title="interface in org.apache.xpath.axes">ContextNodeList</A></CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="getWhatToShow()"><!-- --></A><H3>
getWhatToShow</H3>
<PRE>
public int <A HREF="../../../src-html/org/apache/xpath/NodeSet.html#line.187"><B>getWhatToShow</B></A>()</PRE>
<DL>
<DD>This attribute determines which node types are presented via the
iterator. The available set of constants is defined in the
<code>NodeFilter</code> interface. For NodeSets, the mask has been
hardcoded to show all nodes except EntityReference nodes, which have
no equivalent in the XPath data model.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE>getWhatToShow</CODE> in interface <CODE>org.w3c.dom.traversal.NodeIterator</CODE></DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>integer used as a bit-array, containing flags defined in
the DOM's NodeFilter class. The value will be
<code>SHOW_ALL & ~SHOW_ENTITY_REFERENCE</code>, meaning that
only entity references are suppressed.</DL>
</DD>
</DL>
<HR>
<A NAME="getFilter()"><!-- --></A><H3>
getFilter</H3>
<PRE>
public org.w3c.dom.traversal.NodeFilter <A HREF="../../../src-html/org/apache/xpath/NodeSet.html#line.205"><B>getFilter</B></A>()</PRE>
<DL>
<DD>The filter object used to screen nodes. Filters are applied to
further reduce (and restructure) the NodeIterator's view of the
document. In our case, we will be using hardcoded filters built
into our iterators... but getFilter() is part of the DOM's
NodeIterator interface, so we have to support it.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE>getFilter</CODE> in interface <CODE>org.w3c.dom.traversal.NodeIterator</CODE></DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>null, which is slightly misleading. True, there is no
user-written filter object, but in fact we are doing some very
sophisticated custom filtering. A DOM purist might suggest
returning a placeholder object just to indicate that this is
not going to return all nodes selected by whatToShow.</DL>
</DD>
</DL>
<HR>
<A NAME="getExpandEntityReferences()"><!-- --></A><H3>
getExpandEntityReferences</H3>
<PRE>
public boolean <A HREF="../../../src-html/org/apache/xpath/NodeSet.html#line.226"><B>getExpandEntityReferences</B></A>()</PRE>
<DL>
<DD>The value of this flag determines whether the children of entity
reference nodes are visible to the iterator. If false, they will be
skipped over.
<br> To produce a view of the document that has entity references
expanded and does not expose the entity reference node itself, use the
whatToShow flags to hide the entity reference node and set
expandEntityReferences to true when creating the iterator. To produce
a view of the document that has entity reference nodes but no entity
expansion, use the whatToShow flags to show the entity reference node
and set expandEntityReferences to false.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE>getExpandEntityReferences</CODE> in interface <CODE>org.w3c.dom.traversal.NodeIterator</CODE></DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>true for all iterators based on NodeSet, meaning that the
contents of EntityRefrence nodes may be returned (though whatToShow
says that the EntityReferences themselves are not shown.)</DL>
</DD>
</DL>
<HR>
<A NAME="nextNode()"><!-- --></A><H3>
nextNode</H3>
<PRE>
public org.w3c.dom.Node <A HREF="../../../src-html/org/apache/xpath/NodeSet.html#line.241"><B>nextNode</B></A>()
throws org.w3c.dom.DOMException</PRE>
<DL>
<DD>Returns the next node in the set and advances the position of the
iterator in the set. After a NodeIterator is created, the first call
to nextNode() returns the first node in the set.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE>nextNode</CODE> in interface <CODE>org.w3c.dom.traversal.NodeIterator</CODE></DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>The next <code>Node</code> in the set being iterated over, or
<code>null</code> if there are no more members in that set.
<DT><B>Throws:</B>
<DD><CODE>org.w3c.dom.DOMException</CODE> - INVALID_STATE_ERR: Raised if this method is called after the
<code>detach</code> method was invoked.</DL>
</DD>
</DL>
<HR>
<A NAME="previousNode()"><!-- --></A><H3>
previousNode</H3>
<PRE>
public org.w3c.dom.Node <A HREF="../../../src-html/org/apache/xpath/NodeSet.html#line.267"><B>previousNode</B></A>()
throws org.w3c.dom.DOMException</PRE>
<DL>
<DD>Returns the previous node in the set and moves the position of the
iterator backwards in the set.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE>previousNode</CODE> in interface <CODE>org.w3c.dom.traversal.NodeIterator</CODE></DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>The previous <code>Node</code> in the set being iterated over,
or<code>null</code> if there are no more members in that set.
<DT><B>Throws:</B>
<DD><CODE>org.w3c.dom.DOMException</CODE> - INVALID_STATE_ERR: Raised if this method is called after the
<code>detach</code> method was invoked.
<DD><CODE>java.lang.RuntimeException</CODE> - thrown if this NodeSet is not of
a cached type, and hence doesn't know what the previous node was.</DL>
</DD>
</DL>
<HR>
<A NAME="detach()"><!-- --></A><H3>
detach</H3>
<PRE>
public void <A HREF="../../../src-html/org/apache/xpath/NodeSet.html#line.295"><B>detach</B></A>()</PRE>
<DL>
<DD>Detaches the iterator from the set which it iterated over, releasing
any computational resources and placing the iterator in the INVALID
state. After<code>detach</code> has been invoked, calls to
<code>nextNode</code> or<code>previousNode</code> will raise the
exception INVALID_STATE_ERR.
<p>
This operation is a no-op in NodeSet, and will not cause
INVALID_STATE_ERR to be raised by later operations.
</p>
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE>detach</CODE> in interface <CODE>org.w3c.dom.traversal.NodeIterator</CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="isFresh()"><!-- --></A><H3>
isFresh</H3>
<PRE>
public boolean <A HREF="../../../src-html/org/apache/xpath/NodeSet.html#line.305"><B>isFresh</B></A>()</PRE>
<DL>
<DD>Tells if this NodeSet is "fresh", in other words, if
the first nextNode() that is called will return the
first node in the set.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/apache/xpath/axes/ContextNodeList.html#isFresh()">isFresh</A></CODE> in interface <CODE><A HREF="../../../org/apache/xpath/axes/ContextNodeList.html" title="interface in org.apache.xpath.axes">ContextNodeList</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>true if nextNode() would return the first node in the set,
false if it would return a later one.</DL>
</DD>
</DL>
<HR>
<A NAME="runTo(int)"><!-- --></A><H3>
runTo</H3>
<PRE>
public void <A HREF="../../../src-html/org/apache/xpath/NodeSet.html#line.322"><B>runTo</B></A>(int&nbsp;index)</PRE>
<DL>
<DD>If an index is requested, NodeSet will call this method
to run the iterator to the index. By default this sets
m_next to the index. If the index argument is -1, this
signals that the iterator should be run to the end.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/apache/xpath/axes/ContextNodeList.html#runTo(int)">runTo</A></CODE> in interface <CODE><A HREF="../../../org/apache/xpath/axes/ContextNodeList.html" title="interface in org.apache.xpath.axes">ContextNodeList</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>index</CODE> - Position to advance (or retreat) to, with
0 requesting the reset ("fresh") position and -1 (or indeed
any out-of-bounds value) requesting the final position.
<DT><B>Throws:</B>
<DD><CODE>java.lang.RuntimeException</CODE> - thrown if this NodeSet is not
one of the types which supports indexing/counting.</DL>
</DD>
</DL>
<HR>
<A NAME="item(int)"><!-- --></A><H3>
item</H3>
<PRE>
public org.w3c.dom.Node <A HREF="../../../src-html/org/apache/xpath/NodeSet.html#line.347"><B>item</B></A>(int&nbsp;index)</PRE>
<DL>
<DD>Returns the <code>index</code>th item in the collection. If
<code>index</code> is greater than or equal to the number of nodes in
the list, this returns <code>null</code>.
TODO: What happens if index is out of range?
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE>item</CODE> in interface <CODE>org.w3c.dom.NodeList</CODE></DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>index</CODE> - Index into the collection.
<DT><B>Returns:</B><DD>The node at the <code>index</code>th position in the
<code>NodeList</code>, or <code>null</code> if that is not a valid
index.</DL>
</DD>
</DL>
<HR>
<A NAME="getLength()"><!-- --></A><H3>
getLength</H3>
<PRE>
public int <A HREF="../../../src-html/org/apache/xpath/NodeSet.html#line.363"><B>getLength</B></A>()</PRE>
<DL>
<DD>The number of nodes in the list. The range of valid child node indices is
0 to <code>length-1</code> inclusive. Note that this operation requires
finding all the matching nodes, which may defeat attempts to defer
that work.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE>getLength</CODE> in interface <CODE>org.w3c.dom.NodeList</CODE></DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>integer indicating how many nodes are represented by this list.</DL>
</DD>
</DL>
<HR>
<A NAME="addNode(org.w3c.dom.Node)"><!-- --></A><H3>
addNode</H3>
<PRE>
public void <A HREF="../../../src-html/org/apache/xpath/NodeSet.html#line.379"><B>addNode</B></A>(org.w3c.dom.Node&nbsp;n)</PRE>
<DL>
<DD>Add a node to the NodeSet. Not all types of NodeSets support this
operation
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>n</CODE> - Node to be added
<DT><B>Throws:</B>
<DD><CODE>java.lang.RuntimeException</CODE> - thrown if this NodeSet is not of
a mutable type.</DL>
</DD>
</DL>
<HR>
<A NAME="insertNode(org.w3c.dom.Node, int)"><!-- --></A><H3>
insertNode</H3>
<PRE>
public void <A HREF="../../../src-html/org/apache/xpath/NodeSet.html#line.397"><B>insertNode</B></A>(org.w3c.dom.Node&nbsp;n,
int&nbsp;pos)</PRE>
<DL>
<DD>Insert a node at a given position.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>n</CODE> - Node to be added<DD><CODE>pos</CODE> - Offset at which the node is to be inserted,
with 0 being the first position.
<DT><B>Throws:</B>
<DD><CODE>java.lang.RuntimeException</CODE> - thrown if this NodeSet is not of
a mutable type.</DL>
</DD>
</DL>
<HR>
<A NAME="removeNode(org.w3c.dom.Node)"><!-- --></A><H3>
removeNode</H3>
<PRE>
public void <A HREF="../../../src-html/org/apache/xpath/NodeSet.html#line.413"><B>removeNode</B></A>(org.w3c.dom.Node&nbsp;n)</PRE>
<DL>
<DD>Remove a node.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>n</CODE> - Node to be added
<DT><B>Throws:</B>
<DD><CODE>java.lang.RuntimeException</CODE> - thrown if this NodeSet is not of
a mutable type.</DL>
</DD>
</DL>
<HR>
<A NAME="addNodes(org.w3c.dom.NodeList)"><!-- --></A><H3>
addNodes</H3>
<PRE>
public void <A HREF="../../../src-html/org/apache/xpath/NodeSet.html#line.431"><B>addNodes</B></A>(org.w3c.dom.NodeList&nbsp;nodelist)</PRE>
<DL>
<DD>Copy NodeList members into this nodelist, adding in
document order. If a node is null, don't add it.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>nodelist</CODE> - List of nodes which should now be referenced by
this NodeSet.
<DT><B>Throws:</B>
<DD><CODE>java.lang.RuntimeException</CODE> - thrown if this NodeSet is not of
a mutable type.</DL>
</DD>
</DL>
<HR>
<A NAME="addNodes(org.apache.xpath.NodeSet)"><!-- --></A><H3>
addNodes</H3>
<PRE>
public void <A HREF="../../../src-html/org/apache/xpath/NodeSet.html#line.471"><B>addNodes</B></A>(<A HREF="../../../org/apache/xpath/NodeSet.html" title="class in org.apache.xpath">NodeSet</A>&nbsp;ns)</PRE>
<DL>
<DD><p>Copy NodeList members into this nodelist, adding in
document order. Only genuine node references will be copied;
nulls appearing in the source NodeSet will
not be added to this one. </p>
<p> In case you're wondering why this function is needed: NodeSet
implements both NodeIterator and NodeList. If this method isn't
provided, Java can't decide which of those to use when addNodes()
is invoked. Providing the more-explicit match avoids that
ambiguity.)</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>ns</CODE> - NodeSet whose members should be merged into this NodeSet.
<DT><B>Throws:</B>
<DD><CODE>java.lang.RuntimeException</CODE> - thrown if this NodeSet is not of
a mutable type.</DL>
</DD>
</DL>
<HR>
<A NAME="addNodes(org.w3c.dom.traversal.NodeIterator)"><!-- --></A><H3>
addNodes</H3>
<PRE>
public void <A HREF="../../../src-html/org/apache/xpath/NodeSet.html#line.488"><B>addNodes</B></A>(org.w3c.dom.traversal.NodeIterator&nbsp;iterator)</PRE>
<DL>
<DD>Copy NodeList members into this nodelist, adding in
document order. Null references are not added.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>iterator</CODE> - NodeIterator which yields the nodes to be added.
<DT><B>Throws:</B>
<DD><CODE>java.lang.RuntimeException</CODE> - thrown if this NodeSet is not of
a mutable type.</DL>
</DD>
</DL>
<HR>
<A NAME="addNodesInDocOrder(org.w3c.dom.NodeList, org.apache.xpath.XPathContext)"><!-- --></A><H3>
addNodesInDocOrder</H3>
<PRE>
public void <A HREF="../../../src-html/org/apache/xpath/NodeSet.html#line.516"><B>addNodesInDocOrder</B></A>(org.w3c.dom.NodeList&nbsp;nodelist,
<A HREF="../../../org/apache/xpath/XPathContext.html" title="class in org.apache.xpath">XPathContext</A>&nbsp;support)</PRE>
<DL>
<DD>Copy NodeList members into this nodelist, adding in
document order. If a node is null, don't add it.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>nodelist</CODE> - List of nodes to be added<DD><CODE>support</CODE> - The XPath runtime context.
<DT><B>Throws:</B>
<DD><CODE>java.lang.RuntimeException</CODE> - thrown if this NodeSet is not of
a mutable type.</DL>
</DD>
</DL>
<HR>
<A NAME="addNodesInDocOrder(org.w3c.dom.traversal.NodeIterator, org.apache.xpath.XPathContext)"><!-- --></A><H3>
addNodesInDocOrder</H3>
<PRE>
public void <A HREF="../../../src-html/org/apache/xpath/NodeSet.html#line.544"><B>addNodesInDocOrder</B></A>(org.w3c.dom.traversal.NodeIterator&nbsp;iterator,
<A HREF="../../../org/apache/xpath/XPathContext.html" title="class in org.apache.xpath">XPathContext</A>&nbsp;support)</PRE>
<DL>
<DD>Copy NodeList members into this nodelist, adding in
document order. If a node is null, don't add it.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>iterator</CODE> - NodeIterator which yields the nodes to be added.<DD><CODE>support</CODE> - The XPath runtime context.
<DT><B>Throws:</B>
<DD><CODE>java.lang.RuntimeException</CODE> - thrown if this NodeSet is not of
a mutable type.</DL>
</DD>
</DL>
<HR>
<A NAME="addNodesInDocOrder(int, int, int, org.w3c.dom.NodeList, org.apache.xpath.XPathContext)"><!-- --></A><H3>
addNodesInDocOrder</H3>
<PRE>
private boolean <A HREF="../../../src-html/org/apache/xpath/NodeSet.html#line.571"><B>addNodesInDocOrder</B></A>(int&nbsp;start,
int&nbsp;end,
int&nbsp;testIndex,
org.w3c.dom.NodeList&nbsp;nodelist,
<A HREF="../../../org/apache/xpath/XPathContext.html" title="class in org.apache.xpath">XPathContext</A>&nbsp;support)</PRE>
<DL>
<DD>Add the node list to this node set in document order.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>start</CODE> - index.<DD><CODE>end</CODE> - index.<DD><CODE>testIndex</CODE> - index.<DD><CODE>nodelist</CODE> - The nodelist to add.<DD><CODE>support</CODE> - The XPath runtime context.
<DT><B>Returns:</B><DD>false always.
<DT><B>Throws:</B>
<DD><CODE>java.lang.RuntimeException</CODE> - thrown if this NodeSet is not of
a mutable type.</DL>
</DD>
</DL>
<HR>
<A NAME="addNodeInDocOrder(org.w3c.dom.Node, boolean, org.apache.xpath.XPathContext)"><!-- --></A><H3>
addNodeInDocOrder</H3>
<PRE>
public int <A HREF="../../../src-html/org/apache/xpath/NodeSet.html#line.632"><B>addNodeInDocOrder</B></A>(org.w3c.dom.Node&nbsp;node,
boolean&nbsp;test,
<A HREF="../../../org/apache/xpath/XPathContext.html" title="class in org.apache.xpath">XPathContext</A>&nbsp;support)</PRE>
<DL>
<DD>Add the node into a vector of nodes where it should occur in
document order.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>node</CODE> - The node to be added.<DD><CODE>test</CODE> - true if we should test for doc order<DD><CODE>support</CODE> - The XPath runtime context.
<DT><B>Returns:</B><DD>insertIndex.
<DT><B>Throws:</B>
<DD><CODE>java.lang.RuntimeException</CODE> - thrown if this NodeSet is not of
a mutable type.</DL>
</DD>
</DL>
<HR>
<A NAME="addNodeInDocOrder(org.w3c.dom.Node, org.apache.xpath.XPathContext)"><!-- --></A><H3>
addNodeInDocOrder</H3>
<PRE>
public int <A HREF="../../../src-html/org/apache/xpath/NodeSet.html#line.706"><B>addNodeInDocOrder</B></A>(org.w3c.dom.Node&nbsp;node,
<A HREF="../../../org/apache/xpath/XPathContext.html" title="class in org.apache.xpath">XPathContext</A>&nbsp;support)</PRE>
<DL>
<DD>Add the node into a vector of nodes where it should occur in
document order.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>node</CODE> - The node to be added.<DD><CODE>support</CODE> - The XPath runtime context.
<DT><B>Returns:</B><DD>The index where it was inserted.
<DT><B>Throws:</B>
<DD><CODE>java.lang.RuntimeException</CODE> - thrown if this NodeSet is not of
a mutable type.</DL>
</DD>
</DL>
<HR>
<A NAME="getCurrentPos()"><!-- --></A><H3>
getCurrentPos</H3>
<PRE>
public int <A HREF="../../../src-html/org/apache/xpath/NodeSet.html#line.728"><B>getCurrentPos</B></A>()</PRE>
<DL>
<DD>Get the current position, which is one less than
the next nextNode() call will retrieve. i.e. if
you call getCurrentPos() and the return is 0, the next
fetch will take place at index 1.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/apache/xpath/axes/ContextNodeList.html#getCurrentPos()">getCurrentPos</A></CODE> in interface <CODE><A HREF="../../../org/apache/xpath/axes/ContextNodeList.html" title="interface in org.apache.xpath.axes">ContextNodeList</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>The the current position index.</DL>
</DD>
</DL>
<HR>
<A NAME="setCurrentPos(int)"><!-- --></A><H3>
setCurrentPos</H3>
<PRE>
public void <A HREF="../../../src-html/org/apache/xpath/NodeSet.html#line.739"><B>setCurrentPos</B></A>(int&nbsp;i)</PRE>
<DL>
<DD>Set the current position in the node set.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/apache/xpath/axes/ContextNodeList.html#setCurrentPos(int)">setCurrentPos</A></CODE> in interface <CODE><A HREF="../../../org/apache/xpath/axes/ContextNodeList.html" title="interface in org.apache.xpath.axes">ContextNodeList</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>i</CODE> - Must be a valid index.
<DT><B>Throws:</B>
<DD><CODE>java.lang.RuntimeException</CODE> - thrown if this NodeSet is not of
a cached type, and thus doesn't permit indexed access.</DL>
</DD>
</DL>
<HR>
<A NAME="getCurrentNode()"><!-- --></A><H3>
getCurrentNode</H3>
<PRE>
public org.w3c.dom.Node <A HREF="../../../src-html/org/apache/xpath/NodeSet.html#line.756"><B>getCurrentNode</B></A>()</PRE>
<DL>
<DD>Return the last fetched node. Needed to support the UnionPathIterator.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/apache/xpath/axes/ContextNodeList.html#getCurrentNode()">getCurrentNode</A></CODE> in interface <CODE><A HREF="../../../org/apache/xpath/axes/ContextNodeList.html" title="interface in org.apache.xpath.axes">ContextNodeList</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>the last fetched node.
<DT><B>Throws:</B>
<DD><CODE>java.lang.RuntimeException</CODE> - thrown if this NodeSet is not of
a cached type, and thus doesn't permit indexed access.</DL>
</DD>
</DL>
<HR>
<A NAME="getShouldCacheNodes()"><!-- --></A><H3>
getShouldCacheNodes</H3>
<PRE>
public boolean <A HREF="../../../src-html/org/apache/xpath/NodeSet.html#line.782"><B>getShouldCacheNodes</B></A>()</PRE>
<DL>
<DD>Get whether or not this is a cached node set.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>True if this list is cached.</DL>
</DD>
</DL>
<HR>
<A NAME="setShouldCacheNodes(boolean)"><!-- --></A><H3>
setShouldCacheNodes</H3>
<PRE>
public void <A HREF="../../../src-html/org/apache/xpath/NodeSet.html#line.798"><B>setShouldCacheNodes</B></A>(boolean&nbsp;b)</PRE>
<DL>
<DD>If setShouldCacheNodes(true) is called, then nodes will
be cached. They are not cached by default. This switch must
be set before the first call to nextNode is made, to ensure
that all nodes are cached.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/apache/xpath/axes/ContextNodeList.html#setShouldCacheNodes(boolean)">setShouldCacheNodes</A></CODE> in interface <CODE><A HREF="../../../org/apache/xpath/axes/ContextNodeList.html" title="interface in org.apache.xpath.axes">ContextNodeList</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>b</CODE> - true if this node set should be cached.
<DT><B>Throws:</B>
<DD><CODE>java.lang.RuntimeException</CODE> - thrown if an attempt is made to
request caching after we've already begun stepping through the
nodes in this set.</DL>
</DD>
</DL>
<HR>
<A NAME="getLast()"><!-- --></A><H3>
getLast</H3>
<PRE>
public int <A HREF="../../../src-html/org/apache/xpath/NodeSet.html#line.812"><B>getLast</B></A>()</PRE>
<DL>
<DD><B>Description copied from interface: <CODE><A HREF="../../../org/apache/xpath/axes/ContextNodeList.html#getLast()">ContextNodeList</A></CODE></B></DD>
<DD>Get the index of the last node in this list.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/apache/xpath/axes/ContextNodeList.html#getLast()">getLast</A></CODE> in interface <CODE><A HREF="../../../org/apache/xpath/axes/ContextNodeList.html" title="interface in org.apache.xpath.axes">ContextNodeList</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>the index of the last node in this list.</DL>
</DD>
</DL>
<HR>
<A NAME="setLast(int)"><!-- --></A><H3>
setLast</H3>
<PRE>
public void <A HREF="../../../src-html/org/apache/xpath/NodeSet.html#line.817"><B>setLast</B></A>(int&nbsp;last)</PRE>
<DL>
<DD><B>Description copied from interface: <CODE><A HREF="../../../org/apache/xpath/axes/ContextNodeList.html#setLast(int)">ContextNodeList</A></CODE></B></DD>
<DD>Set the index of the last node in this list.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/apache/xpath/axes/ContextNodeList.html#setLast(int)">setLast</A></CODE> in interface <CODE><A HREF="../../../org/apache/xpath/axes/ContextNodeList.html" title="interface in org.apache.xpath.axes">ContextNodeList</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>last</CODE> - the index of the last node in this list.</DL>
</DD>
</DL>
<HR>
<A NAME="clone()"><!-- --></A><H3>
clone</H3>
<PRE>
public java.lang.Object <A HREF="../../../src-html/org/apache/xpath/NodeSet.html#line.845"><B>clone</B></A>()
throws java.lang.CloneNotSupportedException</PRE>
<DL>
<DD>Get a cloned LocPathIterator.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/apache/xpath/axes/ContextNodeList.html#clone()">clone</A></CODE> in interface <CODE><A HREF="../../../org/apache/xpath/axes/ContextNodeList.html" title="interface in org.apache.xpath.axes">ContextNodeList</A></CODE><DT><B>Overrides:</B><DD><CODE>clone</CODE> in class <CODE>java.lang.Object</CODE></DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>A clone of this
<DT><B>Throws:</B>
<DD><CODE>java.lang.CloneNotSupportedException</CODE></DL>
</DD>
</DL>
<HR>
<A NAME="size()"><!-- --></A><H3>
size</H3>
<PRE>
public int <A HREF="../../../src-html/org/apache/xpath/NodeSet.html#line.865"><B>size</B></A>()</PRE>
<DL>
<DD>Get the length of the list.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/apache/xpath/axes/ContextNodeList.html#size()">size</A></CODE> in interface <CODE><A HREF="../../../org/apache/xpath/axes/ContextNodeList.html" title="interface in org.apache.xpath.axes">ContextNodeList</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>Number of nodes in this NodeVector</DL>
</DD>
</DL>
<HR>
<A NAME="addElement(org.w3c.dom.Node)"><!-- --></A><H3>
addElement</H3>
<PRE>
public void <A HREF="../../../src-html/org/apache/xpath/NodeSet.html#line.875"><B>addElement</B></A>(org.w3c.dom.Node&nbsp;value)</PRE>
<DL>
<DD>Append a Node onto the vector.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>value</CODE> - Node to add to the vector</DL>
</DD>
</DL>
<HR>
<A NAME="push(org.w3c.dom.Node)"><!-- --></A><H3>
push</H3>
<PRE>
public final void <A HREF="../../../src-html/org/apache/xpath/NodeSet.html#line.909"><B>push</B></A>(org.w3c.dom.Node&nbsp;value)</PRE>
<DL>
<DD>Append a Node onto the vector.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>value</CODE> - Node to add to the vector</DL>
</DD>
</DL>
<HR>
<A NAME="pop()"><!-- --></A><H3>
pop</H3>
<PRE>
public final org.w3c.dom.Node <A HREF="../../../src-html/org/apache/xpath/NodeSet.html#line.945"><B>pop</B></A>()</PRE>
<DL>
<DD>Pop a node from the tail of the vector and return the result.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>the node at the tail of the vector</DL>
</DD>
</DL>
<HR>
<A NAME="popAndTop()"><!-- --></A><H3>
popAndTop</H3>
<PRE>
public final org.w3c.dom.Node <A HREF="../../../src-html/org/apache/xpath/NodeSet.html#line.963"><B>popAndTop</B></A>()</PRE>
<DL>
<DD>Pop a node from the tail of the vector and return the
top of the stack after the pop.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>The top of the stack after it's been popped</DL>
</DD>
</DL>
<HR>
<A NAME="popQuick()"><!-- --></A><H3>
popQuick</H3>
<PRE>
public final void <A HREF="../../../src-html/org/apache/xpath/NodeSet.html#line.976"><B>popQuick</B></A>()</PRE>
<DL>
<DD>Pop a node from the tail of the vector.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="peepOrNull()"><!-- --></A><H3>
peepOrNull</H3>
<PRE>
public final org.w3c.dom.Node <A HREF="../../../src-html/org/apache/xpath/NodeSet.html#line.991"><B>peepOrNull</B></A>()</PRE>
<DL>
<DD>Return the node at the top of the stack without popping the stack.
Special purpose method for TransformerImpl, pushElemTemplateElement.
Performance critical.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>Node at the top of the stack or null if stack is empty.</DL>
</DD>
</DL>
<HR>
<A NAME="pushPair(org.w3c.dom.Node, org.w3c.dom.Node)"><!-- --></A><H3>
pushPair</H3>
<PRE>
public final void <A HREF="../../../src-html/org/apache/xpath/NodeSet.html#line.1005"><B>pushPair</B></A>(org.w3c.dom.Node&nbsp;v1,
org.w3c.dom.Node&nbsp;v2)</PRE>
<DL>
<DD>Push a pair of nodes into the stack.
Special purpose method for TransformerImpl, pushElemTemplateElement.
Performance critical.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>v1</CODE> - First node to add to vector<DD><CODE>v2</CODE> - Second node to add to vector</DL>
</DD>
</DL>
<HR>
<A NAME="popPair()"><!-- --></A><H3>
popPair</H3>
<PRE>
public final void <A HREF="../../../src-html/org/apache/xpath/NodeSet.html#line.1037"><B>popPair</B></A>()</PRE>
<DL>
<DD>Pop a pair of nodes from the tail of the stack.
Special purpose method for TransformerImpl, pushElemTemplateElement.
Performance critical.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="setTail(org.w3c.dom.Node)"><!-- --></A><H3>
setTail</H3>
<PRE>
public final void <A HREF="../../../src-html/org/apache/xpath/NodeSet.html#line.1052"><B>setTail</B></A>(org.w3c.dom.Node&nbsp;n)</PRE>
<DL>
<DD>Set the tail of the stack to the given node.
Special purpose method for TransformerImpl, pushElemTemplateElement.
Performance critical.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>n</CODE> - Node to set at the tail of vector</DL>
</DD>
</DL>
<HR>
<A NAME="setTailSub1(org.w3c.dom.Node)"><!-- --></A><H3>
setTailSub1</H3>
<PRE>
public final void <A HREF="../../../src-html/org/apache/xpath/NodeSet.html#line.1064"><B>setTailSub1</B></A>(org.w3c.dom.Node&nbsp;n)</PRE>
<DL>
<DD>Set the given node one position from the tail.
Special purpose method for TransformerImpl, pushElemTemplateElement.
Performance critical.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>n</CODE> - Node to set</DL>
</DD>
</DL>
<HR>
<A NAME="peepTail()"><!-- --></A><H3>
peepTail</H3>
<PRE>
public final org.w3c.dom.Node <A HREF="../../../src-html/org/apache/xpath/NodeSet.html#line.1076"><B>peepTail</B></A>()</PRE>
<DL>
<DD>Return the node at the tail of the vector without popping
Special purpose method for TransformerImpl, pushElemTemplateElement.
Performance critical.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>Node at the tail of the vector</DL>
</DD>
</DL>
<HR>
<A NAME="peepTailSub1()"><!-- --></A><H3>
peepTailSub1</H3>
<PRE>
public final org.w3c.dom.Node <A HREF="../../../src-html/org/apache/xpath/NodeSet.html#line.1088"><B>peepTailSub1</B></A>()</PRE>
<DL>
<DD>Return the node one position from the tail without popping.
Special purpose method for TransformerImpl, pushElemTemplateElement.
Performance critical.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>Node one away from the tail</DL>
</DD>
</DL>
<HR>
<A NAME="insertElementAt(org.w3c.dom.Node, int)"><!-- --></A><H3>
insertElementAt</H3>
<PRE>
public void <A HREF="../../../src-html/org/apache/xpath/NodeSet.html#line.1102"><B>insertElementAt</B></A>(org.w3c.dom.Node&nbsp;value,
int&nbsp;at)</PRE>
<DL>
<DD>Inserts the specified node in this vector at the specified index.
Each component in this vector with an index greater or equal to
the specified index is shifted upward to have an index one greater
than the value it had previously.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>value</CODE> - Node to insert<DD><CODE>at</CODE> - Position where to insert</DL>
</DD>
</DL>
<HR>
<A NAME="appendNodes(org.apache.xpath.NodeSet)"><!-- --></A><H3>
appendNodes</H3>
<PRE>
public void <A HREF="../../../src-html/org/apache/xpath/NodeSet.html#line.1138"><B>appendNodes</B></A>(<A HREF="../../../org/apache/xpath/NodeSet.html" title="class in org.apache.xpath">NodeSet</A>&nbsp;nodes)</PRE>
<DL>
<DD>Append the nodes to the list.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>nodes</CODE> - NodeVector to append to this list</DL>
</DD>
</DL>
<HR>
<A NAME="removeAllElements()"><!-- --></A><H3>
removeAllElements</H3>
<PRE>
public void <A HREF="../../../src-html/org/apache/xpath/NodeSet.html#line.1170"><B>removeAllElements</B></A>()</PRE>
<DL>
<DD>Inserts the specified node in this vector at the specified index.
Each component in this vector with an index greater or equal to
the specified index is shifted upward to have an index one greater
than the value it had previously.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="removeElement(org.w3c.dom.Node)"><!-- --></A><H3>
removeElement</H3>
<PRE>
public boolean <A HREF="../../../src-html/org/apache/xpath/NodeSet.html#line.1195"><B>removeElement</B></A>(org.w3c.dom.Node&nbsp;s)</PRE>
<DL>
<DD>Removes the first occurrence of the argument from this vector.
If the object is found in this vector, each component in the vector
with an index greater or equal to the object's index is shifted
downward to have an index one smaller than the value it had
previously.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>s</CODE> - Node to remove from the list
<DT><B>Returns:</B><DD>True if the node was successfully removed</DL>
</DD>
</DL>
<HR>
<A NAME="removeElementAt(int)"><!-- --></A><H3>
removeElementAt</H3>
<PRE>
public void <A HREF="../../../src-html/org/apache/xpath/NodeSet.html#line.1230"><B>removeElementAt</B></A>(int&nbsp;i)</PRE>
<DL>
<DD>Deletes the component at the specified index. Each component in
this vector with an index greater or equal to the specified
index is shifted downward to have an index one smaller than
the value it had previously.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>i</CODE> - Index of node to remove</DL>
</DD>
</DL>
<HR>
<A NAME="setElementAt(org.w3c.dom.Node, int)"><!-- --></A><H3>
setElementAt</H3>
<PRE>
public void <A HREF="../../../src-html/org/apache/xpath/NodeSet.html#line.1258"><B>setElementAt</B></A>(org.w3c.dom.Node&nbsp;node,
int&nbsp;index)</PRE>
<DL>
<DD>Sets the component at the specified index of this vector to be the
specified object. The previous component at that position is discarded.
The index must be a value greater than or equal to 0 and less
than the current size of the vector.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>node</CODE> - Node to set<DD><CODE>index</CODE> - Index of where to set the node</DL>
</DD>
</DL>
<HR>
<A NAME="elementAt(int)"><!-- --></A><H3>
elementAt</H3>
<PRE>
public org.w3c.dom.Node <A HREF="../../../src-html/org/apache/xpath/NodeSet.html#line.1279"><B>elementAt</B></A>(int&nbsp;i)</PRE>
<DL>
<DD>Get the nth element.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>i</CODE> - Index of node to get
<DT><B>Returns:</B><DD>Node at specified index</DL>
</DD>
</DL>
<HR>
<A NAME="contains(org.w3c.dom.Node)"><!-- --></A><H3>
contains</H3>
<PRE>
public boolean <A HREF="../../../src-html/org/apache/xpath/NodeSet.html#line.1295"><B>contains</B></A>(org.w3c.dom.Node&nbsp;s)</PRE>
<DL>
<DD>Tell if the table contains the given node.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>s</CODE> - Node to look for
<DT><B>Returns:</B><DD>True if the given node was found.</DL>
</DD>
</DL>
<HR>
<A NAME="indexOf(org.w3c.dom.Node, int)"><!-- --></A><H3>
indexOf</H3>
<PRE>
public int <A HREF="../../../src-html/org/apache/xpath/NodeSet.html#line.1324"><B>indexOf</B></A>(org.w3c.dom.Node&nbsp;elem,
int&nbsp;index)</PRE>
<DL>
<DD>Searches for the first occurence of the given argument,
beginning the search at index, and testing for equality
using the equals method.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>elem</CODE> - Node to look for<DD><CODE>index</CODE> - Index of where to start the search
<DT><B>Returns:</B><DD>the index of the first occurrence of the object
argument in this vector at position index or later in the
vector; returns -1 if the object is not found.</DL>
</DD>
</DL>
<HR>
<A NAME="indexOf(org.w3c.dom.Node)"><!-- --></A><H3>
indexOf</H3>
<PRE>
public int <A HREF="../../../src-html/org/apache/xpath/NodeSet.html#line.1352"><B>indexOf</B></A>(org.w3c.dom.Node&nbsp;elem)</PRE>
<DL>
<DD>Searches for the first occurence of the given argument,
beginning the search at index, and testing for equality
using the equals method.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>elem</CODE> - Node to look for
<DT><B>Returns:</B><DD>the index of the first occurrence of the object
argument in this vector at position index or later in the
vector; returns -1 if the object is not found.</DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<A NAME="navbar_bottom"><!-- --></A>
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/NodeSet.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../../org/apache/xpath/FoundIndex.html" title="class in org.apache.xpath"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../org/apache/xpath/NodeSetDTM.html" title="class in org.apache.xpath"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../index.html?org/apache/xpath/NodeSet.html" target="_top"><B>FRAMES</B></A> &nbsp;
&nbsp;<A HREF="NodeSet.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
&nbsp;<SCRIPT type="text/javascript">
<!--
if(window==top) {
document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
}
//-->
</SCRIPT>
<NOSCRIPT>
<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>
</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_bottom"></A>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<HR>
</BODY>
</HTML>