示例#1
0
        public string ToString(IConnectorSession session)
        {
            StringBuilder SB = new StringBuilder("{");

            SB.Append("type=").Append(this.Type.ToString());
            SB.Append(", value=");

            if (this.IsLowerUnbounded())
            {
                SB.Append("<min>");
            }
            else if (this.IsUpperUnbounded())
            {
                SB.Append("<max>");
            }
            else
            {
                SB.Append(this.GetPrintableValue(session));
            }

            SB.Append(", bound=").Append(this.Bound.ToString());

            SB.Append("}");

            return(SB.ToString());
        }
示例#2
0
        public object GetPrintableValue(IConnectorSession session)
        {
            if (this.ValueBlock == null)
            {
                throw new InvalidOperationException("No value to get.");
            }

            return(this.Type.GetObjectValue(session, this.ValueBlock, 0));
        }
示例#3
0
        public string ToString(IConnectorSession session)
        {
            StringBuilder Buffer = new StringBuilder("TupleDomain:");

            if (this.IsAll())
            {
                Buffer.Append("ALL");
            }
            else if (this.IsNone())
            {
                Buffer.Append("NONE");
            }
            else
            {
                Buffer.Append(this.Domains.ToDictionary(x => x.Key, x => x.Value.ToString(session)));
            }

            return(Buffer.ToString());
        }
示例#4
0
        public string ToString(IConnectorSession session)
        {
            StringBuilder SB = new StringBuilder();

            if (this.IsSingleValue())
            {
                SB.Append("[").Append(this.Low.GetPrintableValue(session)).Append("]");
            }
            else
            {
                SB.Append(this.Low.Bound == Bound.EXACTLY ? "[" : "(");
                SB.Append(this.Low.IsLowerUnbounded() ? "<min>" : this.Low.GetPrintableValue(session));
                SB.Append(", ");
                SB.Append(this.High.IsUpperUnbounded() ? "<max>" : this.High.GetPrintableValue(session));
                SB.Append(this.High.Bound == Bound.EXACTLY ? "]" : ")");
            }

            return(SB.ToString());
        }
示例#5
0
 public object GetObjectValue(IConnectorSession session, IBlock block, int position)
 {
     throw new NotImplementedException();
 }
示例#6
0
 public string ToString(IConnectorSession session)
 {
     return($"[{String.Join(", ", this.LowIndexedRanges.Values.Select(x => x.ToString(session)))}]");
 }
示例#7
0
 public string ToString(IConnectorSession session)
 {
     return($"[{(this._All ? "ALL" : "NONE")}]");
 }
示例#8
0
 public string ToString(IConnectorSession session)
 {
     return($"[ {(this.NullAllowed ? "NULL, " : "")}{this.Values.ToString(session)} ]");
 }