Table of Contents

Interface INotifyExpression

Namespace
NMF.Expressions
Assembly
NMF.Expressions.dll

Represents an expression with additional information on the program flow

public interface INotifyExpression : INotifiable, IDisposable
Inherited Members
Extension Methods

Properties

CanBeConstant

Determines whether the expression can be replaced by a constant expression

bool CanBeConstant { get; }

Property Value

bool

IsConstant

Determines whether the current expression is a constant

bool IsConstant { get; }

Property Value

bool

IsParameterFree

Determines whether the current expression contains parameters

bool IsParameterFree { get; }

Property Value

bool

ValueObject

Gets the current value as object

object ValueObject { get; }

Property Value

object

Methods

ApplyParameters(IDictionary<string, object>, IDictionary<INotifiable, INotifiable>)

Applies the given set of parameters to the expression

INotifyExpression ApplyParameters(IDictionary<string, object> parameters, IDictionary<INotifiable, INotifiable> trace)

Parameters

parameters IDictionary<string, object>

A set of parameter values

trace IDictionary<INotifiable, INotifiable>

A trace to make sure parameters are only applied once for every DDG node

Returns

INotifyExpression

A new expression with all parameter placeholders replaced with the parameter values

Remarks

In case that the current expression is parameter free, it simply returns itself