C# Class Tp.Core.Evaluator

Mostra file Open project: TargetProcess/Target-Process-Plugins

Public Methods

Method Description
Evaluate ( Expression argument ) : Maybe
GetParameters ( MethodCallExpression methodCallExpression ) : Maybe>
PartialEval ( Expression expression, bool>.Func fnCanBeEvaluated ) : Expression

Performs evaluation & replacement of independent sub-trees

PartialEval ( this expression ) : Expression

Performs evaluation & replacement of independent sub-trees

SimpleEval ( Expression lambdaContainer ) : Maybe

Private Methods

Method Description
CanBeEvaluatedLocally ( Expression expression ) : bool

Method Details

Evaluate() public static method

public static Evaluate ( Expression argument ) : Maybe
argument System.Linq.Expressions.Expression
return Maybe

GetParameters() public static method

public static GetParameters ( MethodCallExpression methodCallExpression ) : Maybe>
methodCallExpression System.Linq.Expressions.MethodCallExpression
return Maybe>

PartialEval() public static method

Performs evaluation & replacement of independent sub-trees
public static PartialEval ( Expression expression, bool>.Func fnCanBeEvaluated ) : Expression
expression System.Linq.Expressions.Expression The root of the expression tree.
fnCanBeEvaluated bool>.Func A function that decides whether a given expression node can be part of the local function.
return System.Linq.Expressions.Expression

PartialEval() public static method

Performs evaluation & replacement of independent sub-trees
public static PartialEval ( this expression ) : Expression
expression this The root of the expression tree.
return System.Linq.Expressions.Expression

SimpleEval() public static method

public static SimpleEval ( Expression lambdaContainer ) : Maybe
lambdaContainer System.Linq.Expressions.Expression
return Maybe