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
registryPreparedExpressionEmbeddedCodeRegistryRegistry that maps runtime action contexts to prepared artifacts.
Exceptions
- ArgumentNullException
Thrown when
registryisnull.
Methods
Execute(ParserActionExecutionContext)
Executes or ignores a parser action according to the runtime policy.
public ParserActionExecutionOutcome Execute(ParserActionExecutionContext context)
Parameters
contextParserActionExecutionContextImmutable action execution context.
Returns
- ParserActionExecutionOutcome
Execution decision for the action. For memoization safety, implementations should avoid invocation-count-dependent mutable external state.