Class PreparedExpressionParserAction
- Namespace
- Utils.Parser.Expressions
- Assembly
- Utils.Parser.Expressions.dll
Represents an expression-backed parser inline action that was compiled during embedded-code preparation.
public sealed class PreparedExpressionParserAction
- Inheritance
-
PreparedExpressionParserAction
- Inherited Members
- Extension Methods
Constructors
PreparedExpressionParserAction(EmbeddedCodeSource, EmbeddedCodePreparationContext, Action<ParserActionExecutionContext>)
Initializes a new prepared parser action artifact.
public PreparedExpressionParserAction(EmbeddedCodeSource source, EmbeddedCodePreparationContext preparationContext, Action<ParserActionExecutionContext> action)
Parameters
sourceEmbeddedCodeSourceEmbedded-code source that produced this artifact.
preparationContextEmbeddedCodePreparationContextPreparation context used to compile this artifact.
actionAction<ParserActionExecutionContext>Compiled action delegate that executes against the current runtime context.
Exceptions
- ArgumentNullException
Thrown when any required argument is
null.
Properties
PreparationContext
Gets the preparation context used to compile this artifact.
public EmbeddedCodePreparationContext PreparationContext { get; }
Property Value
Source
Gets the embedded-code source that produced this artifact.
public EmbeddedCodeSource Source { get; }
Property Value
Methods
Execute(ParserActionExecutionContext)
Executes the compiled action against the supplied runtime context without recompiling source text.
public ParserActionExecutionOutcome Execute(ParserActionExecutionContext context)
Parameters
contextParserActionExecutionContextCurrent parser runtime context.
Returns
- ParserActionExecutionOutcome
A parser action execution outcome compatible with parser runtime policy results.