C# Класс ExpressionParser.OperatorHelper

Показать файл Открыть проект Примеры использования класса

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

Метод Описание
CreateOperator ( char cOperator ) : IOperator
CreateOperator ( string szOperator ) : IOperator

Factory method to create Operator objects.

GetOperatorsRegEx ( ExpressionType exType ) : string

This gets the regular expression used to find operators in the input expression.

IsArithmeticOperator ( string currentOp ) : bool
IsComparisonOperator ( string currentOp ) : bool
IsEqualPrecOperator ( string currentOp, string prevOp ) : bool

Summary of IsEqualPrecOperator.

IsHigherPrecOperator ( string currentOp, string prevOp ) : bool

Summary of IsHigherPrecOperator.

IsLogicalOperator ( string currentOp ) : bool
IsLowerPrecOperator ( string currentOp, string prevOp ) : bool

Summary of IsLowerPrecOperator.

IsOperator ( string currentOp ) : bool

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

Метод Описание
GetCurrentAndPreviousIndex ( string allOps, string currentOp, string prevOp, int &nCurrIdx, int &nPrevIdx ) : void

Summary of GetCurrentAndPreviousIndex.

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

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

static public CreateOperator ( char cOperator ) : IOperator
cOperator char
Результат IOperator

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

Factory method to create Operator objects.
static public CreateOperator ( string szOperator ) : IOperator
szOperator string
Результат IOperator

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

This gets the regular expression used to find operators in the input expression.
static public GetOperatorsRegEx ( ExpressionType exType ) : string
exType ExpressionType
Результат string

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

public static IsArithmeticOperator ( string currentOp ) : bool
currentOp string
Результат bool

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

public static IsComparisonOperator ( string currentOp ) : bool
currentOp string
Результат bool

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

Summary of IsEqualPrecOperator.
public static IsEqualPrecOperator ( string currentOp, string prevOp ) : bool
currentOp string
prevOp string
Результат bool

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

Summary of IsHigherPrecOperator.
public static IsHigherPrecOperator ( string currentOp, string prevOp ) : bool
currentOp string
prevOp string
Результат bool

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

public static IsLogicalOperator ( string currentOp ) : bool
currentOp string
Результат bool

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

Summary of IsLowerPrecOperator.
public static IsLowerPrecOperator ( string currentOp, string prevOp ) : bool
currentOp string
prevOp string
Результат bool

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

public static IsOperator ( string currentOp ) : bool
currentOp string
Результат bool