Table of Contents

Class PreparedExpressionParserActionExecutor

Namespace
Utils.Parser.Expressions
Assembly
Utils.Parser.Expressions.dll

Executes parser inline actions by running prepared expression artifacts from an explicit registry.

public sealed class PreparedExpressionParserActionExecutor : IParserActionExecutor
Inheritance
PreparedExpressionParserActionExecutor
Implements
Inherited Members
Extension Methods

Constructors

PreparedExpressionParserActionExecutor(PreparedExpressionEmbeddedCodeRegistry)

Initializes a new executor that consumes already-prepared parser action artifacts.

public PreparedExpressionParserActionExecutor(PreparedExpressionEmbeddedCodeRegistry registry)

Parameters

registry PreparedExpressionEmbeddedCodeRegistry

Registry that maps runtime action contexts to prepared artifacts.

Exceptions

ArgumentNullException

Thrown when registry is null.

Methods

Execute(ParserActionExecutionContext)

Executes or ignores a parser action according to the runtime policy.

public ParserActionExecutionOutcome Execute(ParserActionExecutionContext context)

Parameters

context ParserActionExecutionContext

Immutable action execution context.

Returns

ParserActionExecutionOutcome

Execution decision for the action. For memoization safety, implementations should avoid invocation-count-dependent mutable external state.