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
Mostra file Open project: Kooboo/Ecommerce Class Usage Examples

Public Methods

Method Description
Evaluate ( Expression expression, object dataContext ) : bool

Evalute the value of the specified condition expression.

ExpressionEvaluator ( RuleParameterProviderCollection parameterProviders, ComparisonOperatorCollection comparisonOperators ) : System

Protected Methods

Method Description
Visit ( ComparisonExpression exp ) : void
Visit ( LogicalBindaryExpression exp ) : void

Method Details

Evaluate() public method

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.
return bool

ExpressionEvaluator() public method

public ExpressionEvaluator ( RuleParameterProviderCollection parameterProviders, ComparisonOperatorCollection comparisonOperators ) : System
parameterProviders RuleParameterProviderCollection
comparisonOperators ComparisonOperatorCollection
return System

Visit() protected method

protected Visit ( ComparisonExpression exp ) : void
exp Kooboo.Commerce.Rules.Conditions.Expressions.ComparisonExpression
return void

Visit() protected method

protected Visit ( LogicalBindaryExpression exp ) : void
exp Kooboo.Commerce.Rules.Conditions.Expressions.LogicalBindaryExpression
return void