Table of Contents

Class EvaluationVisitor

Namespace
NCalc.Visitors
Assembly
NCalc.Sync.dll

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 object
b object
comparisonType ComparisonType

Returns

bool

Evaluate(LogicalExpression)

protected object? Evaluate(LogicalExpression expression)

Parameters

expression LogicalExpression

Returns

object

OnEvaluateFunction(string, FunctionArgs)

protected void OnEvaluateFunction(string name, FunctionArgs args)

Parameters

name string
args FunctionArgs

OnEvaluateParameter(string, ParameterArgs)

protected void OnEvaluateParameter(string name, ParameterArgs args)

Parameters

name string
args ParameterArgs

Visit(BinaryExpression)

public virtual object? Visit(BinaryExpression expression)

Parameters

expression BinaryExpression

Returns

object

Visit(Function)

public virtual object? Visit(Function function)

Parameters

function Function

Returns

object

Visit(Identifier)

public virtual object? Visit(Identifier identifier)

Parameters

identifier Identifier

Returns

object

Visit(LogicalExpressionList)

public virtual object Visit(LogicalExpressionList list)

Parameters

list LogicalExpressionList

Returns

object

Visit(TernaryExpression)

public virtual object? Visit(TernaryExpression expression)

Parameters

expression TernaryExpression

Returns

object

Visit(UnaryExpression)

public virtual object? Visit(UnaryExpression expression)

Parameters

expression UnaryExpression

Returns

object

Visit(ValueExpression)

public virtual object? Visit(ValueExpression expression)

Parameters

expression ValueExpression

Returns

object