NodeListener<TBaseNode, TNode> Class ​
Definition ​
A Listener<TNode> that only listens to nodes of a specific type and does not take a context object. All other nodes will be ignored. The listener will still proceed to descendants of nodes that aren't listened too, that is, the entire tree will be walked.
c#
public abstract class NodeListener<TBaseNode, TNode> : Listener<TBaseNode>
where TBaseNode : Node<TBaseNode>
where TNode : TBaseNodeType Parameters ​
| Name | Description |
|---|---|
TBaseNode | The base type of all nodes in the tree. |
TNode | The type of the nodes to listen to. |
Constructors ​
| Name | Description |
|---|---|
NodeListener() |
Methods ​
| Name | Description |
|---|---|
AfterListenToNode(TBaseNode) | Called after a node and its descendants have been listened to. |
AfterListenToNode(TNode) | Called after a node and its descendants have been listened to. |
BeforeListenToNode(TBaseNode) | Called before a node and its descendants are listened to. |
BeforeListenToNode(TNode) | Called before a node and its descendants are listened to. |
ListenToNode(TBaseNode) | Called when the node is listened to. |
ListenToNode(TNode) | Called when the node is listened to. |
ShouldListenToDescendants(TBaseNode) | Return a value indicating whether child nodes should be listened to or not. Defaults to true. |
ShouldListenToDescendants(TNode) | Return a value indicating whether child nodes should be listened to or not. Defaults to true. |