Class OperatorInfo
Describes an operator's symbol, precedence, and associativity for use in expression parsing and evaluation.
Inheritance
Inherited Members
Namespace: Telerik.Windows.Documents.Spreadsheet.Expressions
Assembly: Telerik.Windows.Documents.Spreadsheet.dll
Syntax
public class OperatorInfo
Constructors
OperatorInfo(String, Int32, OperatorAssociativity)
Initializes a new operator descriptor with the specified symbol, precedence, and associativity.
Declaration
public OperatorInfo(string symbol, int precedence, OperatorAssociativity associativity)
Parameters
|
System.String
symbol
The symbol. |
|
System.Int32
precedence
The precedence. |
|
OperatorAssociativity
associativity
The associativity. |
Properties
Associativity
Gets whether this operator evaluates left-to-right or right-to-left when operators of equal precedence appear together.
Declaration
public OperatorAssociativity Associativity { get; }
Property Value
|
OperatorAssociativity
The associativity. |
Precedence
Gets the precedence value determining evaluation order, with lower numbers evaluated first.
Declaration
public int Precedence { get; }
Property Value
|
System.Int32
The precedence. |
Symbol
Gets the character or characters that represent this operator (e.g., "+", "*", "<=").
Declaration
public string Symbol { get; }
Property Value
|
System.String
The symbol. |