#include <TreeWalker.hpp>
Inherited by FormatterTreeWalker, NodeNameTreeWalker, and XalanDocumentPrefixResolver::NamespaceNodesTreeWalker.
Definition at line 36 of file TreeWalker.hpp.
TreeWalker::TreeWalker | ( | ) |
Constructor.
virtual TreeWalker::~TreeWalker | ( | ) | [virtual] |
virtual bool TreeWalker::endNode | ( | const XalanNode * | node | ) | [protected, pure virtual] |
Called when leaving a node.
node | The node |
Implemented in XalanDocumentPrefixResolver::NamespaceNodesTreeWalker, NodeNameTreeWalker, and FormatterTreeWalker.
virtual bool TreeWalker::endNode | ( | XalanNode * | node | ) | [protected, pure virtual] |
Called when leaving a node.
node | The node |
Implemented in XalanDocumentPrefixResolver::NamespaceNodesTreeWalker, NodeNameTreeWalker, and FormatterTreeWalker.
virtual bool TreeWalker::startNode | ( | XalanNode * | node | ) | [protected, pure virtual] |
Called when first walking a node.
node | The node |
Implemented in XalanDocumentPrefixResolver::NamespaceNodesTreeWalker, NodeNameTreeWalker, and FormatterTreeWalker.
virtual bool TreeWalker::startNode | ( | const XalanNode * | node | ) | [protected, pure virtual] |
Called when first walking a node.
node | The node |
Implemented in XalanDocumentPrefixResolver::NamespaceNodesTreeWalker, NodeNameTreeWalker, and FormatterTreeWalker.
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 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.
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 |
virtual void TreeWalker::traverseSubtree | ( | const XalanNode * | pos | ) | [virtual] |
Perform a pre-order traversal.
pos | starting node |
virtual void TreeWalker::traverseSubtree | ( | XalanNode * | pos | ) | [virtual] |
Perform a pre-order traversal.
pos | starting node |
Doxygen and GraphViz are used to generate this API documentation from the Xalan-C header files.
Xalan-C++ XSLT Processor Version 1.11 |
|