Skip to content

Replacer<TContext, TBaseNode> Class

Definition

An OrderedProcessor<TContext, TBaseNode> for optionally replacing nodes in a tree.

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

View source

Type Parameters

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

Constructors

Name Description
Replacer()

Methods

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