ICompositeListenerBuilder<TBaseNode> Interface
Definition
Fluent interface to build a CompositeListener<TBaseNode>.
public abstract interface ICompositeListenerBuilder<TBaseNode>
where TBaseNode : Node<TBaseNode>
Type Parameters
| Name | Description |
|---|---|
TBaseNode |
The base type of all nodes in the tree. |
Methods
| Name | Description |
|---|---|
ToListener() |
Builds the CompositeListener<TBaseNode>. |
With(Listener<TBaseNode>) |
Add a listener for the base node type. Useful to provide a fallback listener when there is no listener for the specific node type registered. |
With<TNode>(NodeListener<TBaseNode, TNode>) |
Add a listener for the specific node type TNode. This can be a base node type which will be used if there is no listener for the specific node type registered. |