/// <summary> /// Add an equivalent aggregation function node /// </summary> /// <param name="aggNodeToAdd">node to add</param> public void AddEquivalent(ExprAggregateNode aggNodeToAdd) { if (EquivalentNodes == null) { EquivalentNodes = new List<ExprAggregateNode>(); } EquivalentNodes.Add(aggNodeToAdd); }
/// <summary> /// Returns a string representation of the node without any SWUM markup. /// </summary> public override string ToPlainString() { StringBuilder sb = new StringBuilder(); if (EquivalentNodes != null) { for (int i = 0; i < EquivalentNodes.Count - 1; i++) { sb.AppendFormat("{0}|", EquivalentNodes[i].ToPlainString()); } sb.Append(EquivalentNodes.Last().ToPlainString()); } return(sb.ToString()); }