org.apache.xpath.axes
public class NodeSequence extends XObject implements DTMIterator, Cloneable, PathComponent
| Constructor Summary | |
|---|---|
| NodeSequence(DTMIterator iter, int context, XPathContext xctxt, boolean shouldCacheNodes)
Create a new NodeSequence from a (already cloned) iterator.
| |
| NodeSequence(Object nodeVector)
Create a new NodeSequence from a (already cloned) iterator.
| |
| NodeSequence(DTMManager dtmMgr)
Construct an empty XNodeSet object. | |
| NodeSequence()
Create a new NodeSequence in an invalid (null) state. | |
| Method Summary | |
|---|---|
| void | allowDetachToRelease(boolean allowRelease)
Calling this with a value of false will cause the nodeset
to be cached. |
| Object | clone()
Get a clone of this iterator, but don't reset the iteration in the
process, so that it may be used from the current position.
|
| DTMIterator | cloneWithReset()
Note: Not a deep clone. |
| void | detach() |
| void | fixupVariables(Vector vars, int globalsSize) |
| int | getAnalysisBits() |
| int | getAxis() |
| DTMIterator | getContainedIter()
Get the functional iterator that fetches nodes. |
| int | getCurrentNode() |
| int | getCurrentPos() |
| DTM | getDTM(int nodeHandle) |
| DTMManager | getDTMManager() |
| boolean | getExpandEntityReferences() |
| int | getLength() |
| int | getRoot() |
| int | getWhatToShow() |
| boolean | hasCache()
If this iterator needs to cache nodes that are fetched, they
are stored here. |
| boolean | isDocOrdered() |
| boolean | isFresh() |
| boolean | isMutable() |
| int | item(int index) |
| int | nextNode() |
| int | previousNode() |
| void | reset() |
| void | runTo(int index) |
| void | setCurrentPos(int i) |
| void | setItem(int node, int index) |
| void | setIter(DTMIterator iter)
Set the functional iterator that fetches nodes. |
| void | setRoot(int nodeHandle, Object environment) |
| void | setShouldCacheNodes(boolean b) |
Parameters: iter Cloned (not static) DTMIterator. context The initial context node. xctxt The execution context. shouldCacheNodes True if this sequence can random access.
Parameters: nodeVector
See Also: DTMIterator
Returns: A clone of this object.
Throws: CloneNotSupportedException
See Also: cloneWithReset
See Also: detach
See Also: Expression
See Also: getAnalysisBits
See Also: getAxis
Returns: The contained iterator.
See Also: getCurrentNode
See Also: getCurrentPos
See Also: DTMIterator
See Also: getDTMManager
See Also: getExpandEntityReferences
See Also: getLength
See Also: getRoot
See Also: getWhatToShow
See Also: isDocOrdered
See Also: isFresh
See Also: isMutable
See Also: DTMIterator
See Also: nextNode
See Also: previousNode
See Also: reset
See Also: DTMIterator
See Also: DTMIterator
See Also: DTMIterator
Parameters: iter The iterator that is to be contained.
See Also: DTMIterator
See Also: DTMIterator