Class EvaluationVisitor
Class responsible to evaluating LogicalExpression objects into CLR objects.
public class EvaluationVisitor : ILogicalExpressionVisitor<object?>
- Inheritance
-
EvaluationVisitor
- Implements
- Inherited Members
Constructors
EvaluationVisitor(ExpressionContext)
Class responsible to evaluating LogicalExpression objects into CLR objects.
public EvaluationVisitor(ExpressionContext context)
Parameters
context
ExpressionContext
Methods
Compare(object?, object?, ComparisonType)
protected bool Compare(object? a, object? b, ComparisonType comparisonType)
Parameters
a
objectb
objectcomparisonType
ComparisonType
Returns
Evaluate(LogicalExpression)
protected object? Evaluate(LogicalExpression expression)
Parameters
expression
LogicalExpression
Returns
OnEvaluateFunction(string, FunctionArgs)
protected void OnEvaluateFunction(string name, FunctionArgs args)
Parameters
name
stringargs
FunctionArgs
OnEvaluateParameter(string, ParameterArgs)
protected void OnEvaluateParameter(string name, ParameterArgs args)
Parameters
name
stringargs
ParameterArgs
Visit(BinaryExpression)
public virtual object? Visit(BinaryExpression expression)
Parameters
expression
BinaryExpression
Returns
Visit(Function)
public virtual object? Visit(Function function)
Parameters
function
Function
Returns
Visit(Identifier)
public virtual object? Visit(Identifier identifier)
Parameters
identifier
Identifier
Returns
Visit(LogicalExpressionList)
public virtual object Visit(LogicalExpressionList list)
Parameters
Returns
Visit(TernaryExpression)
public virtual object? Visit(TernaryExpression expression)
Parameters
expression
TernaryExpression
Returns
Visit(UnaryExpression)
public virtual object? Visit(UnaryExpression expression)
Parameters
expression
UnaryExpression
Returns
Visit(ValueExpression)
public virtual object? Visit(ValueExpression expression)
Parameters
expression
ValueExpression