public RowComparator(ExpParse exp, bool desc) { this.expParse_0 = exp; if (!desc) { this.bool_0 = false; } else { this.bool_0 = desc; } }
protected internal virtual void setParameter(string paramStr) { ArgToken token = new ArgToken((paramStr == null) ? null : paramStr.Trim(), ','); while (token.MoveNext()) { string expStr = token.Current.ToString().Trim(); ExpParse parse = null; if (expStr.Length > 0) { parse = new ExpParse(this.cs, this.ds, this.env, expStr); } this.paramList.Add(parse); } }
protected internal override Unit optimize() { bool flag = true; if (base.unit_0 != null) { base.unit_0 = base.unit_0.optimize(); if (!(base.unit_0 is Constant)) { flag = false; } } if (base.unit_1 != null) { base.unit_1 = base.unit_1.optimize(); if (!(base.unit_1 is Constant)) { flag = false; } } if (this.paramList != null) { for (int i = 0; i < this.paramList.Count; i++) { ExpParse parse = (ExpParse)this.paramList[i]; if (parse != null) { parse.optimize(); if (!parse.ConstantExpression) { flag = false; } } } } if (flag && this.canOptimized()) { return(new Constant(this.calculate())); } return(this); }
public RowComparator(ExpParse exp) { this.expParse_0 = exp; this.bool_0 = false; }