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
ExpressionContextContextual parameters of the LogicalExpression, like custom functions and parameters.
Methods
Compare(object?, object?, ComparisonType)
protected bool Compare(object? a, object? b, ComparisonType comparisonType)
Parameters
a
objectb
objectcomparisonType
ComparisonType
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 object? Visit(BinaryExpression expression)
Parameters
expression
BinaryExpression
Returns
Visit(Function)
public object? Visit(Function function)
Parameters
function
Function
Returns
Visit(Identifier)
public object? Visit(Identifier identifier)
Parameters
identifier
Identifier
Returns
Visit(LogicalExpressionList)
public object Visit(LogicalExpressionList list)
Parameters
Returns
Visit(TernaryExpression)
public object? Visit(TernaryExpression expression)
Parameters
expression
TernaryExpression
Returns
Visit(UnaryExpression)
public object? Visit(UnaryExpression expression)
Parameters
expression
UnaryExpression
Returns
Visit(ValueExpression)
public object? Visit(ValueExpression expression)
Parameters
expression
ValueExpression