C# Класс YAMP.Operator

The abstract base class for any operator (unary, binary, ...).
Наследование: Block, IRegisterElement
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
Create ( ) : Operator

Creates a new instance of the current operator.

Create ( ParseEngine engine ) : Operator

Creates a new instance of the current operator.

Evaluate ( Expression expressions, Value>.IDictionary symbols ) : Value

Begins the evaluation of given expressions.

Operator ( String op ) : System

Creates a new operator given the string for the operator.

Operator ( String op, Int32 level ) : System

Creates a new operator given the string and level for the operator.

RegisterElement ( IElementMapping elementMapping ) : void

Registers the operator at its factory.

ToCode ( ) : String

The code representation of the operator, which is usually just the operator itself.

ToDebug ( int padLeft, int tabsize ) : String

Returns a string to allow visualization of a Expression tree

ToString ( ) : String

Returns the string representation of the operator.

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

Create() публичный абстрактный Метод

Creates a new instance of the current operator.
public abstract Create ( ) : Operator
Результат Operator

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

Creates a new instance of the current operator.
public Create ( ParseEngine engine ) : Operator
engine ParseEngine The engine that is used for parsing the query.
Результат Operator

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

Begins the evaluation of given expressions.
public abstract Evaluate ( Expression expressions, Value>.IDictionary symbols ) : Value
expressions Expression The expressions to evaluate.
symbols Value>.IDictionary External symbols to consider.
Результат Value

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

Creates a new operator given the string for the operator.
public Operator ( String op ) : System
op String The operator string like +.
Результат System

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

Creates a new operator given the string and level for the operator.
public Operator ( String op, Int32 level ) : System
op String The operator string like +.
level System.Int32 The operator level like 100.
Результат System

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

Registers the operator at its factory.
public RegisterElement ( IElementMapping elementMapping ) : void
elementMapping IElementMapping
Результат void

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

The code representation of the operator, which is usually just the operator itself.
public ToCode ( ) : String
Результат String

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

Returns a string to allow visualization of a Expression tree
public ToDebug ( int padLeft, int tabsize ) : String
padLeft int
tabsize int
Результат String

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

Returns the string representation of the operator.
public ToString ( ) : String
Результат String