Xalan-C++ API Reference 1.12.0
|
#include <xalanc/DOMSupport/TreeWalker.hpp>
Public Member Functions | |
TreeWalker () | |
Constructor. | |
virtual | ~TreeWalker () |
const XalanNode * | traverse (const XalanNode *pos) |
Perform a document-order traversal. | |
XalanNode * | traverse (XalanNode *pos) |
Perform a document-order traversal. | |
const XalanNode * | traverse (const XalanNode *pos, const XalanNode *parent) |
Perform a document-order traversal stopping at the provided parent node. | |
XalanNode * | traverse (XalanNode *pos, XalanNode *parent) |
Perform a document-order traversal stopping at the provided parent node. | |
virtual void | traverseSubtree (const XalanNode *pos) |
Perform a pre-order traversal. | |
virtual void | traverseSubtree (XalanNode *pos) |
Perform a pre-order traversal. | |
Protected Member Functions | |
virtual bool | startNode (const XalanNode *node)=0 |
Called when first walking a node. | |
virtual bool | startNode (XalanNode *node)=0 |
Called when first walking a node. | |
virtual bool | endNode (const XalanNode *node)=0 |
Called when leaving a node. | |
virtual bool | endNode (XalanNode *node)=0 |
Called when leaving a node. | |
Definition at line 36 of file TreeWalker.hpp.
xalanc::TreeWalker::TreeWalker | ( | ) |
Constructor.
|
virtual |
Called when leaving a node.
node | The node |
Implemented in xalanc::XalanDocumentPrefixResolver::NamespaceNodesTreeWalker, xalanc::NodeNameTreeWalker, and xalanc::FormatterTreeWalker.
Called when leaving a node.
node | The node |
Implemented in xalanc::XalanDocumentPrefixResolver::NamespaceNodesTreeWalker, xalanc::NodeNameTreeWalker, and xalanc::FormatterTreeWalker.
Called when first walking a node.
node | The node |
Implemented in xalanc::XalanDocumentPrefixResolver::NamespaceNodesTreeWalker, xalanc::NodeNameTreeWalker, and xalanc::FormatterTreeWalker.
Called when first walking a node.
node | The node |
Implemented in xalanc::XalanDocumentPrefixResolver::NamespaceNodesTreeWalker, xalanc::NodeNameTreeWalker, and xalanc::FormatterTreeWalker.
Perform a document-order traversal.
Derived classes and stop the traversal by returning true from startNode() or endNode(). If that happens, the function will return the next node in document order. If desired, the caller can start traversing the tree again from that point. Note that terminal nodes will always have startNode() and endNode() called before the traversal terminates.
pos | The node in the tree with which to start the walk |
Perform a document-order traversal stopping at the provided parent node.
Derived classes and stop the traversal by returning true from startNode() or endNode(). If that happens, the function will return the next node in document order. If desired, the caller can start traversing the tree again from that point. Note that terminal nodes will always have startNode() and endNode() called before the traversal terminates.
pos | The node in the tree with which to start the walk |
parent | The parent of pos. Note that for multiple calls that continue the traversal, this node must remain the same. |
Perform a document-order traversal.
Derived classes and stop the traversal by returning true from startNode() or endNode(). If that happens, the function will return the next node in document order. If desired, the caller can start traversing the tree again from that point. Note that terminal nodes will always have startNode() and endNode() called before the traversal terminates.
pos | The node in the tree with which to start the walk |
Perform a document-order traversal stopping at the provided parent node.
Derived classes and stop the traversal by returning true from startNode() or endNode(). If that happens, the function will return the next node in document order. If desired, the caller can start traversing the tree again from that point. Note that terminal nodes will always have startNode() and endNode() called before the traversal terminates.
pos | The node in the tree with which to start the walk |
parent | The parent of pos. Note that for multiple calls that continue the traversal, this node must remain the same. |
Perform a pre-order traversal.
pos | starting node |
Perform a pre-order traversal.
pos | starting node |
Copyright © 1999-2020 The Apache Software Foundation. All Rights Reserved.
Generated on Mon Feb 5 2024 20:50:04 for Xalan-C++ API Reference by