Table of Contents

Class PreparedExpressionEmbeddedCodeRegistry

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

Stores prepared expression embedded-code artifacts for explicit runtime lookup by parser policies.

public sealed class PreparedExpressionEmbeddedCodeRegistry
Inheritance
PreparedExpressionEmbeddedCodeRegistry
Inherited Members
Extension Methods

Methods

TryAddParserAction(PreparedExpressionEmbeddedCodeKey, PreparedExpressionParserAction)

Adds a prepared parser action using an explicit key.

public bool TryAddParserAction(PreparedExpressionEmbeddedCodeKey key, PreparedExpressionParserAction artifact)

Parameters

key PreparedExpressionEmbeddedCodeKey

Prepared artifact lookup key.

artifact PreparedExpressionParserAction

Prepared parser action artifact.

Returns

bool

true when the artifact was added; false when the key already exists.

TryAddParserAction(PreparedExpressionParserAction)

Adds a prepared parser action using the key derived from its source metadata.

public bool TryAddParserAction(PreparedExpressionParserAction artifact)

Parameters

artifact PreparedExpressionParserAction

Prepared parser action artifact.

Returns

bool

true when the artifact was added; false when the key already exists.

TryAddSemanticPredicate(PreparedExpressionEmbeddedCodeKey, PreparedExpressionSemanticPredicate)

Adds a prepared semantic predicate using an explicit key.

public bool TryAddSemanticPredicate(PreparedExpressionEmbeddedCodeKey key, PreparedExpressionSemanticPredicate artifact)

Parameters

key PreparedExpressionEmbeddedCodeKey

Prepared artifact lookup key.

artifact PreparedExpressionSemanticPredicate

Prepared semantic predicate artifact.

Returns

bool

true when the artifact was added; false when the key already exists.

TryAddSemanticPredicate(PreparedExpressionSemanticPredicate)

Adds a prepared semantic predicate using the key derived from its source metadata.

public bool TryAddSemanticPredicate(PreparedExpressionSemanticPredicate artifact)

Parameters

artifact PreparedExpressionSemanticPredicate

Prepared semantic predicate artifact.

Returns

bool

true when the artifact was added; false when the key already exists.

TryGetParserAction(PreparedExpressionEmbeddedCodeKey, out PreparedExpressionParserAction?)

Looks up a prepared parser action by exact key.

public bool TryGetParserAction(PreparedExpressionEmbeddedCodeKey key, out PreparedExpressionParserAction? artifact)

Parameters

key PreparedExpressionEmbeddedCodeKey

Prepared artifact lookup key.

artifact PreparedExpressionParserAction

Prepared artifact when found.

Returns

bool

true when a matching artifact exists; otherwise false.

TryGetParserAction(ParserActionExecutionContext, out PreparedExpressionParserAction?)

Looks up a prepared parser action from runtime execution metadata.

public bool TryGetParserAction(ParserActionExecutionContext context, out PreparedExpressionParserAction? artifact)

Parameters

context ParserActionExecutionContext

Current parser-action execution context.

artifact PreparedExpressionParserAction

Prepared artifact when found.

Returns

bool

true when a matching artifact exists; otherwise false.

TryGetSemanticPredicate(PreparedExpressionEmbeddedCodeKey, out PreparedExpressionSemanticPredicate?)

Looks up a prepared semantic predicate by exact key.

public bool TryGetSemanticPredicate(PreparedExpressionEmbeddedCodeKey key, out PreparedExpressionSemanticPredicate? artifact)

Parameters

key PreparedExpressionEmbeddedCodeKey

Prepared artifact lookup key.

artifact PreparedExpressionSemanticPredicate

Prepared artifact when found.

Returns

bool

true when a matching artifact exists; otherwise false.

TryGetSemanticPredicate(SemanticPredicateEvaluationContext, out PreparedExpressionSemanticPredicate?)

Looks up a prepared semantic predicate from runtime evaluation metadata.

public bool TryGetSemanticPredicate(SemanticPredicateEvaluationContext context, out PreparedExpressionSemanticPredicate? artifact)

Parameters

context SemanticPredicateEvaluationContext

Current semantic-predicate evaluation context.

artifact PreparedExpressionSemanticPredicate

Prepared artifact when found.

Returns

bool

true when a matching artifact exists; otherwise false.