Package org.htmlunit.xpath.xml.dtm.ref
Class DTMDefaultBaseTraversers
- java.lang.Object
-
- org.htmlunit.xpath.xml.dtm.ref.DTMDefaultBase
-
- org.htmlunit.xpath.xml.dtm.ref.DTMDefaultBaseTraversers
-
- All Implemented Interfaces:
DTM
- Direct Known Subclasses:
DTMDefaultBaseIterators
public abstract class DTMDefaultBaseTraversers extends DTMDefaultBase
This class implements the traversers for DTMDefaultBase.PLEASE NOTE that the public interface for all traversers should be in terms of DTM Node Handles... but they may use the internal node identity indices within their logic, for efficiency's sake. Be very careful to avoid confusing these when maintaining this code.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private classDTMDefaultBaseTraversers.AllFromNodeTraverserImplements traversal of the entire subtree, including the root node.private classDTMDefaultBaseTraversers.AllFromRootTraverserImplements traversal of the Ancestor access, in reverse document order.private classDTMDefaultBaseTraversers.AncestorOrSelfTraverserImplements traversal of the Ancestor access, in reverse document order.private classDTMDefaultBaseTraversers.AncestorTraverserImplements traversal of the Ancestor access, in reverse document order.private classDTMDefaultBaseTraversers.AttributeTraverserImplements traversal of the Attribute accessprivate classDTMDefaultBaseTraversers.ChildTraverserImplements traversal of the Ancestor access, in reverse document order.private classDTMDefaultBaseTraversers.DescendantFromRootTraverserA non-xpath axis, returns all nodes that aren't namespaces or attributes, from but not including the root.private classDTMDefaultBaseTraversers.DescendantOrSelfFromRootTraverserA non-xpath axis, returns all nodes that aren't namespaces or attributes, from and including the root.private classDTMDefaultBaseTraversers.DescendantOrSelfTraverserImplements traversal of the Ancestor access, in reverse document order.private classDTMDefaultBaseTraversers.DescendantTraverserImplements traversal of the Ancestor access, in reverse document order.private classDTMDefaultBaseTraversers.FollowingSiblingTraverserImplements traversal of the Ancestor access, in reverse document order.private classDTMDefaultBaseTraversers.FollowingTraverserImplements traversal of the following access, in document order.private classDTMDefaultBaseTraversers.IndexedDTMAxisTraverserSuper class for derived classes that want a convenient way to access the indexing mechanism.private classDTMDefaultBaseTraversers.NamespaceDeclsTraverserImplements traversal of the Ancestor access, in reverse document order.private classDTMDefaultBaseTraversers.NamespaceTraverserImplements traversal of the Ancestor access, in reverse document order.private classDTMDefaultBaseTraversers.ParentTraverserImplements traversal of the Ancestor access, in reverse document order.private classDTMDefaultBaseTraversers.PrecedingAndAncestorTraverserImplements traversal of the Ancestor and the Preceding axis, in reverse document order.private classDTMDefaultBaseTraversers.PrecedingSiblingTraverserImplements traversal of the Ancestor access, in reverse document order.private classDTMDefaultBaseTraversers.PrecedingTraverserImplements traversal of the Ancestor access, in reverse document order.private classDTMDefaultBaseTraversers.RootTraverserImplements traversal of the Self axis.private classDTMDefaultBaseTraversers.SelfTraverserImplements traversal of the Self axis.
-
Field Summary
-
Fields inherited from class org.htmlunit.xpath.xml.dtm.ref.DTMDefaultBase
DEFAULT_BLOCKSIZE, DEFAULT_NUMBLOCKS, DEFAULT_NUMBLOCKS_SMALL, JJK_DEBUG, m_documentBaseURI, m_dtmIdent, m_elemIndexes, m_expandedNameTable, m_exptype, m_firstch, m_indexing, m_mgr, m_mgrDefault, m_namespaceDeclSetElements, m_namespaceDeclSets, m_nextsib, m_parent, m_prevsib, m_size, m_traversers, NOTPROCESSED, ROOTNODE
-
Fields inherited from interface org.htmlunit.xpath.xml.dtm.DTM
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NAMESPACE_NODE, NOTATION_NODE, NTYPES, NULL, PROCESSING_INSTRUCTION_NODE, TEXT_NODE
-
-
Constructor Summary
Constructors Constructor Description DTMDefaultBaseTraversers(DTMManager mgr, javax.xml.transform.Source source, int dtmIdentity, boolean doIndexing)Construct a DTMDefaultBaseTraversers object from a DOM node.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DTMAxisTraversergetAxisTraverser(int axis)This returns a stateless "traverser", that can navigate over an XPath axis, though not in document order.-
Methods inherited from class org.htmlunit.xpath.xml.dtm.ref.DTMDefaultBase
_exptype, _firstch, _level, _nextsib, _parent, _prevsib, _type, declareNamespaceInContext, dumpDTM, dumpNode, ensureSizeOfIndex, findElementFromIndex, findGTE, findInSortedSuballocatedIntVector, findNamespaceContext, getAttributeNode, getDocument, getDocumentRoot, getElementById, getExpandedTypeID, getExpandedTypeID, getFirstAttribute, getFirstAttributeIdentity, getFirstChild, getFirstNamespaceNode, getLastChild, getLocalName, getManager, getNamespaceURI, getNextAttribute, getNextAttributeIdentity, getNextNamespaceNode, getNextNodeIdentity, getNextSibling, getNode, getNodeName, getNodeNameX, getNodeType, getNodeValue, getOwnerDocument, getParent, getPrefix, getPreviousSibling, getStringValue, indexNode, isNodeAfter, makeNodeHandle, makeNodeIdentity, nextNode
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.htmlunit.xpath.xml.dtm.DTM
getAxisIterator
-
-
-
-
Constructor Detail
-
DTMDefaultBaseTraversers
public DTMDefaultBaseTraversers(DTMManager mgr, javax.xml.transform.Source source, int dtmIdentity, boolean doIndexing)
Construct a DTMDefaultBaseTraversers object from a DOM node.- Parameters:
mgr- The DTMManager who owns this DTM.source- The object that is used to specify the construction source.dtmIdentity- The DTM identity ID for this DTM.doIndexing- flag
-
-
Method Detail
-
getAxisTraverser
public DTMAxisTraverser getAxisTraverser(int axis)
This returns a stateless "traverser", that can navigate over an XPath axis, though not in document order.- Parameters:
axis- One of Axes.ANCESTORORSELF, etc.- Returns:
- A DTMAxisIterator, or null if the givin axis isn't supported.
-
-