Skip to content

NodeReplacer<TContext, TBaseNode, TNode> Class

Definition

An OrderedNodeProcessor<TContext, TBaseNode, TNode> for optionally replacing nodes of a specific type in a tree.

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

View source

Type Parameters

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

Constructors

Name Description
NodeReplacer()

Methods

Name Description
Process(TContext, TNode) Performs processing on the specified node. Does not process any descendents.
Replace(TContext, TNode) Optionally replace the specified node.