| |
|
| org.apache.xpath.objects.XObject org.apache.xpath.axes.NodeSequence
All known Subclasses: org.apache.xpath.objects.XNodeSet,
Field Summary | |
protected DTMManager | m_dtmMgr The DTMManager to use if we're using a NodeVector only. | protected DTMIterator | m_iter The functional iterator that fetches nodes. | protected int | m_last The index of the last node in the iteration. | protected int | m_next The index of the next node to be fetched. | final static long | serialVersionUID |
m_dtmMgr | protected DTMManager m_dtmMgr(Code) | | The DTMManager to use if we're using a NodeVector only.
We may well want to do away with this, and store it in the NodeVector.
|
m_last | protected int m_last(Code) | | The index of the last node in the iteration.
|
m_next | protected int m_next(Code) | | The index of the next node to be fetched. Useful if this
is a cached iterator, and is being used as random access
NodeList.
|
serialVersionUID | final static long serialVersionUID(Code) | | |
NodeSequence | public NodeSequence(DTMIterator iter, int context, XPathContext xctxt, boolean shouldCacheNodes)(Code) | | Create a new NodeSequence from a (already cloned) iterator.
Parameters: iter - Cloned (not static) DTMIterator. Parameters: context - The initial context node. Parameters: xctxt - The execution context. Parameters: shouldCacheNodes - True if this sequence can random access. |
NodeSequence | public NodeSequence(Object nodeVector)(Code) | | Create a new NodeSequence from a (already cloned) iterator.
Parameters: nodeVector - |
NodeSequence | public NodeSequence(DTMManager dtmMgr)(Code) | | Construct an empty XNodeSet object. This is used to create a mutable
nodeset to which random nodes may be added.
|
NodeSequence | public NodeSequence()(Code) | | Create a new NodeSequence in an invalid (null) state.
|
SetVector | protected void SetVector(NodeVector v)(Code) | | Set the vector where nodes will be stored.
|
addNodeInDocOrder | protected int addNodeInDocOrder(int node)(Code) | | Add the node into a vector of nodes where it should occur in
document order.
Parameters: node - The node to be added. insertIndex. throws: RuntimeException - thrown if this NodeSetDTM is not of a mutable type. |
getContainedIter | final public DTMIterator getContainedIter()(Code) | | Get the functional iterator that fetches nodes.
The contained iterator. |
getVector | protected NodeVector getVector()(Code) | | If this iterator needs to cache nodes that are fetched, they
are stored in the Vector in the generic object.
|
hasCache | public boolean hasCache()(Code) | | If this iterator needs to cache nodes that are fetched, they
are stored here.
|
setIter | final public void setIter(DTMIterator iter)(Code) | | Set the functional iterator that fetches nodes.
Parameters: iter - The iterator that is to be contained. |
|
|
|