Skip to content

Listener<TNode> Class

Definition

A Listener<TContext, TNode> that does not take a context object. Any state the listener needs must be held by the listener itself.

public abstract class Listener<TNode> : Listener<NoContext, TNode>
   where TNode : Node<TNode>

View source

Type Parameters

Name Description
TNode The type of the nodes to listen to.

Constructors

Name Description
Listener()

Methods

Name Description
AfterListenToNode(NoContext, TNode) 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(NoContext, TNode) Called before a node and its descendants are listened to.
BeforeListenToNode(TNode) Called before a node and its descendants are listened to.
Listen(TNode) Listen to the specified node and its descendants.
ListenToNode(NoContext, TNode) Called when the node is listened to.
ListenToNode(TNode) Called when the node is listened to.
ShouldListenToDescendants(NoContext, TNode) 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.