C# Class Kooboo.Commerce.Rules.Conditions.ExpressionEvaluator

Represents a evaluator to evaluate the result of a condition expression.
Inheritance: Kooboo.Commerce.Rules.Conditions.Expressions.ExpressionVisitor
Afficher le fichier Open project: Kooboo/Ecommerce Class Usage Examples

Méthodes publiques

Méthode Description
Evaluate ( Expression expression, object dataContext ) : bool

Evalute the value of the specified condition expression.

ExpressionEvaluator ( RuleParameterProviderCollection parameterProviders, ComparisonOperatorCollection comparisonOperators ) : System

Méthodes protégées

Méthode Description
Visit ( ComparisonExpression exp ) : void
Visit ( LogicalBindaryExpression exp ) : void

Method Details

Evaluate() public méthode

Evalute the value of the specified condition expression.
public Evaluate ( Expression expression, object dataContext ) : bool
expression Kooboo.Commerce.Rules.Conditions.Expressions.Expression The condition expression to evaluate.
dataContext object The context object.
Résultat bool

ExpressionEvaluator() public méthode

public ExpressionEvaluator ( RuleParameterProviderCollection parameterProviders, ComparisonOperatorCollection comparisonOperators ) : System
parameterProviders RuleParameterProviderCollection
comparisonOperators ComparisonOperatorCollection
Résultat System

Visit() protected méthode

protected Visit ( ComparisonExpression exp ) : void
exp Kooboo.Commerce.Rules.Conditions.Expressions.ComparisonExpression
Résultat void

Visit() protected méthode

protected Visit ( LogicalBindaryExpression exp ) : void
exp Kooboo.Commerce.Rules.Conditions.Expressions.LogicalBindaryExpression
Résultat void