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
keyPreparedExpressionEmbeddedCodeKeyPrepared artifact lookup key.
artifactPreparedExpressionParserActionPrepared parser action artifact.
Returns
- bool
truewhen the artifact was added;falsewhen 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
artifactPreparedExpressionParserActionPrepared parser action artifact.
Returns
- bool
truewhen the artifact was added;falsewhen the key already exists.
TryAddSemanticPredicate(PreparedExpressionEmbeddedCodeKey, PreparedExpressionSemanticPredicate)
Adds a prepared semantic predicate using an explicit key.
public bool TryAddSemanticPredicate(PreparedExpressionEmbeddedCodeKey key, PreparedExpressionSemanticPredicate artifact)
Parameters
keyPreparedExpressionEmbeddedCodeKeyPrepared artifact lookup key.
artifactPreparedExpressionSemanticPredicatePrepared semantic predicate artifact.
Returns
- bool
truewhen the artifact was added;falsewhen 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
artifactPreparedExpressionSemanticPredicatePrepared semantic predicate artifact.
Returns
- bool
truewhen the artifact was added;falsewhen 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
keyPreparedExpressionEmbeddedCodeKeyPrepared artifact lookup key.
artifactPreparedExpressionParserActionPrepared artifact when found.
Returns
- bool
truewhen a matching artifact exists; otherwisefalse.
TryGetParserAction(ParserActionExecutionContext, out PreparedExpressionParserAction?)
Looks up a prepared parser action from runtime execution metadata.
public bool TryGetParserAction(ParserActionExecutionContext context, out PreparedExpressionParserAction? artifact)
Parameters
contextParserActionExecutionContextCurrent parser-action execution context.
artifactPreparedExpressionParserActionPrepared artifact when found.
Returns
- bool
truewhen a matching artifact exists; otherwisefalse.
TryGetSemanticPredicate(PreparedExpressionEmbeddedCodeKey, out PreparedExpressionSemanticPredicate?)
Looks up a prepared semantic predicate by exact key.
public bool TryGetSemanticPredicate(PreparedExpressionEmbeddedCodeKey key, out PreparedExpressionSemanticPredicate? artifact)
Parameters
keyPreparedExpressionEmbeddedCodeKeyPrepared artifact lookup key.
artifactPreparedExpressionSemanticPredicatePrepared artifact when found.
Returns
- bool
truewhen a matching artifact exists; otherwisefalse.
TryGetSemanticPredicate(SemanticPredicateEvaluationContext, out PreparedExpressionSemanticPredicate?)
Looks up a prepared semantic predicate from runtime evaluation metadata.
public bool TryGetSemanticPredicate(SemanticPredicateEvaluationContext context, out PreparedExpressionSemanticPredicate? artifact)
Parameters
contextSemanticPredicateEvaluationContextCurrent semantic-predicate evaluation context.
artifactPreparedExpressionSemanticPredicatePrepared artifact when found.
Returns
- bool
truewhen a matching artifact exists; otherwisefalse.