C# Класс XSpect.Yacq.Expressions.MacroExpression

Represents an macro expression, which is invocable like lambdas, but they are reduced into another expression in pre-evaluate time.
Наследование: YacqExpression
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
Evaluate ( ) : Expression

Evaluates this macro expression.

Evaluate ( IEnumerable arguments ) : Expression

Evaluates this macro expression.

Evaluate ( SymbolTable symbols ) : Expression

Evaluates this macro expression.

Evaluate ( SymbolTable symbols, IEnumerable arguments ) : Expression

Evaluates this macro expression.

Защищенные методы

Метод Описание
ReduceImpl ( SymbolTable symbols, Type expectedType ) : Expression

Reduces this node to a simpler expression with additional symbol tables.

Приватные методы

Метод Описание
MacroExpression ( SymbolTable symbols, Expression body, IList parameters ) : System

Описание методов

Evaluate() публичный Метод

Evaluates this macro expression.
public Evaluate ( ) : Expression
Результат System.Linq.Expressions.Expression

Evaluate() публичный Метод

Evaluates this macro expression.
public Evaluate ( IEnumerable arguments ) : Expression
arguments IEnumerable The arguments of this macro expression.
Результат System.Linq.Expressions.Expression

Evaluate() публичный Метод

Evaluates this macro expression.
public Evaluate ( SymbolTable symbols ) : Expression
symbols XSpect.Yacq.Symbols.SymbolTable The additional symbol table for reducing.
Результат System.Linq.Expressions.Expression

Evaluate() публичный Метод

Evaluates this macro expression.
public Evaluate ( SymbolTable symbols, IEnumerable arguments ) : Expression
symbols XSpect.Yacq.Symbols.SymbolTable The additional symbol table for reducing.
arguments IEnumerable The arguments of this macro expression.
Результат System.Linq.Expressions.Expression

ReduceImpl() защищенный Метод

Reduces this node to a simpler expression with additional symbol tables.
protected ReduceImpl ( SymbolTable symbols, Type expectedType ) : Expression
symbols XSpect.Yacq.Symbols.SymbolTable The additional symbol table for reducing.
expectedType System.Type The type which is expected as the type of reduced expression.
Результат System.Linq.Expressions.Expression