C# Class YAMP.UnaryOperator

The abstract base class for every unary operator (!, ', ...)
Inheritance: Operator
ファイルを表示 Open project: FlorianRappl/YAMP

Public Methods

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

The implementation of the more general evaluate method.

Handle ( Expression expression, Value>.IDictionary symbols ) : Value

Handles the evaluation of one expression.

Perform ( Value value ) : Value

Performs the operation with the evaluated value.

UnaryOperator ( String op, Int32 level ) : System

Creates a new unary operator.

Method Details

Evaluate() public method

The implementation of the more general evaluate method.
public Evaluate ( Expression expressions, Value>.IDictionary symbols ) : Value
expressions Expression The array of expressions, unary operators require Length == 1.
symbols Value>.IDictionary The external symbols to consider.
return Value

Handle() public method

Handles the evaluation of one expression.
public Handle ( Expression expression, Value>.IDictionary symbols ) : Value
expression Expression The expression on the left.
symbols Value>.IDictionary The external symbols to consider.
return Value

Perform() public method

Performs the operation with the evaluated value.
public Perform ( Value value ) : Value
value Value The value to operate with.
return Value

UnaryOperator() public method

Creates a new unary operator.
public UnaryOperator ( String op, Int32 level ) : System
op String The operator string.
level System.Int32 The operator level.
return System