Skip to content

OrderedNodeProcessor<TContext, TBaseNode, TNode> Class

Definition

Performs some processing on a given node using a processing context in a Pipeline<TContext, TBaseNode>. The processor can specify the order the pipeline should traverse the tree and whether to process descendents or not.

public abstract class OrderedNodeProcessor<TContext, TBaseNode, TNode> : OrderedProcessor<TContext, TBaseNode>
   where TBaseNode : Node<TBaseNode>
   where TNode : TBaseNode

View source

Type Parameters

Name Description
TContext The type of the processing context.
TBaseNode The type of nodes in the tree.
TNode The type of node to process.

Constructors

Name Description
OrderedNodeProcessor()

Methods

Name Description
Process(TContext, TBaseNode) Performs processing on the specified node. Does not process any descendents.
Process(TContext, TNode) Performs processing on the specified node. Does not process any descendents.
ShouldProcessDescendents(TContext, TBaseNode) Whether descendents of this node should be processed by the Pipeline<TBaseNode> or not. Defaults to true.
ShouldProcessDescendents(TContext, TNode) Whether descendents of this node should be processed by the Pipeline<TContext, TBaseNode> or not. Defaults to true.