C# Class ExpressionParser.OperatorHelper

Afficher le fichier Open project: IndiansIncredible/.NetIDS Class Usage Examples

Méthodes publiques

Méthode Description
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

Private Methods

Méthode Description
GetCurrentAndPreviousIndex ( string allOps, string currentOp, string prevOp, int &nCurrIdx, int &nPrevIdx ) : void

Summary of GetCurrentAndPreviousIndex.

Method Details

CreateOperator() static public méthode

static public CreateOperator ( char cOperator ) : IOperator
cOperator char
Résultat IOperator

CreateOperator() static public méthode

Factory method to create Operator objects.
static public CreateOperator ( string szOperator ) : IOperator
szOperator string
Résultat IOperator

GetOperatorsRegEx() static public méthode

This gets the regular expression used to find operators in the input expression.
static public GetOperatorsRegEx ( ExpressionType exType ) : string
exType ExpressionType
Résultat string

IsArithmeticOperator() public static méthode

public static IsArithmeticOperator ( string currentOp ) : bool
currentOp string
Résultat bool

IsComparisonOperator() public static méthode

public static IsComparisonOperator ( string currentOp ) : bool
currentOp string
Résultat bool

IsEqualPrecOperator() public static méthode

Summary of IsEqualPrecOperator.
public static IsEqualPrecOperator ( string currentOp, string prevOp ) : bool
currentOp string
prevOp string
Résultat bool

IsHigherPrecOperator() public static méthode

Summary of IsHigherPrecOperator.
public static IsHigherPrecOperator ( string currentOp, string prevOp ) : bool
currentOp string
prevOp string
Résultat bool

IsLogicalOperator() public static méthode

public static IsLogicalOperator ( string currentOp ) : bool
currentOp string
Résultat bool

IsLowerPrecOperator() public static méthode

Summary of IsLowerPrecOperator.
public static IsLowerPrecOperator ( string currentOp, string prevOp ) : bool
currentOp string
prevOp string
Résultat bool

IsOperator() public static méthode

public static IsOperator ( string currentOp ) : bool
currentOp string
Résultat bool