9 instantiations of Operator
System.Xml (9)
System\Xml\XPath\Internal\XPathParser.cs (9)
71
opnd = new
Operator
(Operator.Op.OR, opnd, ParseAndExpr(qyInput));
84
opnd = new
Operator
(Operator.Op.AND, opnd, ParseEqualityExpr(qyInput));
103
opnd = new
Operator
(op, opnd, ParseRelationalExpr(qyInput));
124
opnd = new
Operator
(op, opnd, ParseAdditiveExpr(qyInput));
143
opnd = new
Operator
(op, opnd, ParseMultiplicativeExpr(qyInput));
163
opnd = new
Operator
(op, opnd, ParseUnaryExpr(qyInput));
176
return new
Operator
(Operator.Op.MUL, ParseUnionExpr(qyInput), new Operand(-1));
195
opnd = new
Operator
(Operator.Op.UNION, opnd, opnd2);
528
opnd = new
Operator
(Operator.Op.UNION, opnd, ParseLocationPathPattern(qyInput));
138 references to Operator
System.Xml (138)
System\Xml\XPath\Internal\BooleanExpr.cs (6)
21
public BooleanExpr(
Operator
.Op op, Query opnd1, Query opnd2) {
22
Debug.Assert(op ==
Operator
.Op.AND || op ==
Operator
.Op.OR);
32
isOr = (op ==
Operator
.Op.OR);
58
w.WriteAttributeString("op", (isOr ?
Operator
.Op.OR :
Operator
.Op.AND).ToString());
System\Xml\XPath\Internal\LogicalExpr.cs (66)
17
Operator
.Op op;
21
public LogicalExpr(
Operator
.Op op, Query opnd1, Query opnd2) {
23
Operator
.Op.LT == op ||
Operator
.Op.GT == op ||
24
Operator
.Op.LE == op ||
Operator
.Op.GE == op ||
25
Operator
.Op.EQ == op ||
Operator
.Op.NE == op
43
Operator
.Op op = this.op;
49
op =
Operator
.InvertOperator(op);
58
if (op ==
Operator
.Op.EQ || op ==
Operator
.Op.NE) {
65
delegate bool cmpXslt(
Operator
.Op op, object val1, object val2);
84
static bool cmpQueryQueryE(
Operator
.Op op, object val1, object val2) {
85
Debug.Assert(op ==
Operator
.Op.EQ || op ==
Operator
.Op.NE);
86
bool isEQ = (op ==
Operator
.Op.EQ);
111
static bool cmpQueryQueryO(
Operator
.Op op, object val1, object val2) {
113
op ==
Operator
.Op.LT || op ==
Operator
.Op.GT ||
114
op ==
Operator
.Op.LE || op ==
Operator
.Op.GE
138
static bool cmpQueryNumber(
Operator
.Op op, object val1, object val2) {
150
static bool cmpQueryStringE(
Operator
.Op op, object val1, object val2) {
162
static bool cmpQueryStringO(
Operator
.Op op, object val1, object val2) {
174
static bool cmpRtfQueryE(
Operator
.Op op, object val1, object val2) {
186
static bool cmpRtfQueryO(
Operator
.Op op, object val1, object val2) {
198
static bool cmpQueryBoolE(
Operator
.Op op, object val1, object val2) {
205
static bool cmpQueryBoolO(
Operator
.Op op, object val1, object val2) {
212
static bool cmpBoolBoolE(
Operator
.Op op, bool n1, bool n2) {
213
Debug.Assert( op ==
Operator
.Op.EQ || op ==
Operator
.Op.NE,
216
return (op ==
Operator
.Op.EQ) == (n1 == n2);
218
static bool cmpBoolBoolE(
Operator
.Op op, object val1, object val2) {
224
static bool cmpBoolBoolO(
Operator
.Op op, object val1, object val2) {
230
static bool cmpBoolNumberE(
Operator
.Op op, object val1, object val2) {
236
static bool cmpBoolNumberO(
Operator
.Op op, object val1, object val2) {
242
static bool cmpBoolStringE(
Operator
.Op op, object val1, object val2) {
248
static bool cmpRtfBoolE(
Operator
.Op op, object val1, object val2) {
254
static bool cmpBoolStringO(
Operator
.Op op, object val1, object val2) {
261
static bool cmpRtfBoolO(
Operator
.Op op, object val1, object val2) {
268
static bool cmpNumberNumber(
Operator
.Op op, double n1, double n2) {
270
case
Operator
.Op.LT : return( n1 < n2 ) ;
271
case
Operator
.Op.GT : return( n1 > n2 ) ;
272
case
Operator
.Op.LE : return( n1 <= n2 ) ;
273
case
Operator
.Op.GE : return( n1 >= n2 ) ;
274
case
Operator
.Op.EQ : return( n1 == n2 ) ;
275
case
Operator
.Op.NE : return( n1 != n2 ) ;
280
static bool cmpNumberNumberO(
Operator
.Op op, double n1, double n2) {
282
case
Operator
.Op.LT : return( n1 < n2 ) ;
283
case
Operator
.Op.GT : return( n1 > n2 ) ;
284
case
Operator
.Op.LE : return( n1 <= n2 ) ;
285
case
Operator
.Op.GE : return( n1 >= n2 ) ;
290
static bool cmpNumberNumber(
Operator
.Op op, object val1, object val2) {
296
static bool cmpStringNumber(
Operator
.Op op, object val1, object val2) {
302
static bool cmpRtfNumber(
Operator
.Op op, object val1, object val2) {
308
static bool cmpStringStringE(
Operator
.Op op, string n1, string n2) {
309
Debug.Assert( op ==
Operator
.Op.EQ || op ==
Operator
.Op.NE,
312
return (op ==
Operator
.Op.EQ) == (n1 == n2);
314
static bool cmpStringStringE(
Operator
.Op op, object val1, object val2) {
319
static bool cmpRtfStringE(
Operator
.Op op, object val1, object val2) {
324
static bool cmpRtfRtfE(
Operator
.Op op, object val1, object val2) {
330
static bool cmpStringStringO(
Operator
.Op op, object val1, object val2) {
336
static bool cmpRtfStringO(
Operator
.Op op, object val1, object val2) {
342
static bool cmpRtfRtfO(
Operator
.Op op, object val1, object val2) {
System\Xml\XPath\Internal\NumericExpr.cs (18)
17
private
Operator
.Op op;
21
public NumericExpr(
Operator
.Op op, Query opnd1, Query opnd2) {
23
op ==
Operator
.Op.PLUS || op ==
Operator
.Op.MINUS ||
24
op ==
Operator
.Op.MUL || op ==
Operator
.Op.DIV ||
25
op ==
Operator
.Op.MOD
55
private static double GetValue(
Operator
.Op op, double n1, double n2) {
56
Debug.Assert(op ==
Operator
.Op.PLUS || op ==
Operator
.Op.MINUS || op ==
Operator
.Op.MOD || op ==
Operator
.Op.DIV || op ==
Operator
.Op.MUL);
58
case
Operator
.Op.PLUS : return n1 + n2;
59
case
Operator
.Op.MINUS : return n1 - n2;
60
case
Operator
.Op.MOD : return n1 % n2;
61
case
Operator
.Op.DIV : return n1 / n2;
62
case
Operator
.Op.MUL : return n1 * n2;
System\Xml\XPath\Internal\Operator.cs (2)
50
static public
Operator
.Op InvertOperator(
Operator
.Op op) {
System\Xml\XPath\Internal\QueryBuilder.cs (18)
223
prevCond = new LogicalExpr(
Operator
.Op.EQ, new NodeFunctions(FT.FuncPosition, null), prevCond);
225
cond = new BooleanExpr(
Operator
.Op.AND, prevCond, cond);
264
private Query ProcessOperator(
Operator
root, out Props props) {
270
case
Operator
.Op.PLUS :
271
case
Operator
.Op.MINUS :
272
case
Operator
.Op.MUL :
273
case
Operator
.Op.MOD :
274
case
Operator
.Op.DIV:
276
case
Operator
.Op.LT :
277
case
Operator
.Op.GT :
278
case
Operator
.Op.LE :
279
case
Operator
.Op.GE :
280
case
Operator
.Op.EQ :
281
case
Operator
.Op.NE :
283
case
Operator
.Op.OR :
284
case
Operator
.Op.AND :
286
case
Operator
.Op.UNION :
408
result = ProcessOperator((
Operator
)root, out props);
System\Xml\XPath\Internal\XPathParser.cs (28)
71
opnd = new Operator(
Operator
.Op.OR, opnd, ParseAndExpr(qyInput));
84
opnd = new Operator(
Operator
.Op.AND, opnd, ParseEqualityExpr(qyInput));
94
Operator
.Op op = (
95
this.scanner.Kind == XPathScanner.LexKind.Eq ?
Operator
.Op.EQ :
96
this.scanner.Kind == XPathScanner.LexKind.Ne ?
Operator
.Op.NE :
97
/*default :*/
Operator
.Op.INVALID
99
if (op ==
Operator
.Op.INVALID) {
113
Operator
.Op op = (
114
this.scanner.Kind == XPathScanner.LexKind.Lt ?
Operator
.Op.LT :
115
this.scanner.Kind == XPathScanner.LexKind.Le ?
Operator
.Op.LE :
116
this.scanner.Kind == XPathScanner.LexKind.Gt ?
Operator
.Op.GT :
117
this.scanner.Kind == XPathScanner.LexKind.Ge ?
Operator
.Op.GE :
118
/*default :*/
Operator
.Op.INVALID
120
if (op ==
Operator
.Op.INVALID) {
134
Operator
.Op op = (
135
this.scanner.Kind == XPathScanner.LexKind.Plus ?
Operator
.Op.PLUS :
136
this.scanner.Kind == XPathScanner.LexKind.Minus ?
Operator
.Op.MINUS :
137
/*default :*/
Operator
.Op.INVALID
139
if (op ==
Operator
.Op.INVALID) {
153
Operator
.Op op = (
154
this.scanner.Kind == XPathScanner.LexKind.Star ?
Operator
.Op.MUL :
155
TestOp("div") ?
Operator
.Op.DIV :
156
TestOp("mod") ?
Operator
.Op.MOD :
157
/*default :*/
Operator
.Op.INVALID
159
if (op ==
Operator
.Op.INVALID) {
176
return new Operator(
Operator
.Op.MUL, ParseUnionExpr(qyInput), new Operand(-1));
195
opnd = new Operator(
Operator
.Op.UNION, opnd, opnd2);
528
opnd = new Operator(
Operator
.Op.UNION, opnd, ParseLocationPathPattern(qyInput));