MrKWatkins.Ast Help

PipelineStageBuilder<TSelf, TProcessor, TNode> Class

Definition

Fluent builder for a pipeline stage.

public abstract class PipelineStageBuilder<TSelf, TProcessor, TNode> where TSelf : PipelineStageBuilder<TSelf, TProcessor, TNode> where TProcessor : Processor<TNode> where TNode : Node<TNode>

Type Parameters

Name

Description

TSelf

TProcessor

TNode

Methods

Name

Description

Add<TConstructableProcessor>()

Adds a Processor<TNode> of the specified type to the current stage.

Add(TProcessor, TProcessor[])

Adds Processors to the current stage.

WithAlwaysContinue()

Specifies that processing should always continue after this stage. By default, processing will not continue if there are any errors in the tree.

WithName(String)

Sets the name of the stage.

WithShouldContinue(Func<TNode, Boolean>)

Sets a function to determine whether processing should continue after this stage or not. Any previously registered function will be replaced. By default, processing will not continue if there are any errors in the tree.

Last modified: 09 September 2024