C# Class ExpressionParser.OperatorHelper

Mostrar archivo Open project: IndiansIncredible/.NetIDS Class Usage Examples

Public Methods

Method 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

Method Description
GetCurrentAndPreviousIndex ( string allOps, string currentOp, string prevOp, int &nCurrIdx, int &nPrevIdx ) : void

Summary of GetCurrentAndPreviousIndex.

Method Details

CreateOperator() static public method

static public CreateOperator ( char cOperator ) : IOperator
cOperator char
return IOperator

CreateOperator() static public method

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

GetOperatorsRegEx() static public method

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

IsArithmeticOperator() public static method

public static IsArithmeticOperator ( string currentOp ) : bool
currentOp string
return bool

IsComparisonOperator() public static method

public static IsComparisonOperator ( string currentOp ) : bool
currentOp string
return bool

IsEqualPrecOperator() public static method

Summary of IsEqualPrecOperator.
public static IsEqualPrecOperator ( string currentOp, string prevOp ) : bool
currentOp string
prevOp string
return bool

IsHigherPrecOperator() public static method

Summary of IsHigherPrecOperator.
public static IsHigherPrecOperator ( string currentOp, string prevOp ) : bool
currentOp string
prevOp string
return bool

IsLogicalOperator() public static method

public static IsLogicalOperator ( string currentOp ) : bool
currentOp string
return bool

IsLowerPrecOperator() public static method

Summary of IsLowerPrecOperator.
public static IsLowerPrecOperator ( string currentOp, string prevOp ) : bool
currentOp string
prevOp string
return bool

IsOperator() public static method

public static IsOperator ( string currentOp ) : bool
currentOp string
return bool