Skip to content

OrderedNodeProcessor<TContext, TBaseNode, TNode> Class ​

Definition ​

Performs some processing on a given node of a specific type 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 descendants or not.

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

View source

Type Parameters ​

NameDescription
TContextThe type of the processing context.
TBaseNodeThe type of nodes in the tree.
TNodeThe type of node to process.

Constructors ​

NameDescription
OrderedNodeProcessor()

Methods ​

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