Ejemplo n.º 1
0
 override public string ToString()
 {
     System.Text.StringBuilder buf = new System.Text.StringBuilder();
     buf.Append('{');
     if (mChildrenL != null && mChildrenL.length() > 0)
     {
         buf.Append('\n');
         for (int i = 0; i < mChildrenL.length(); i++)
         {
             IRTSLinker lin = mChildrenL.get(i);
             if (lin != null)
             {
                 string s   = lin.ToString();
                 int    off = 0;
                 for (int j = 0; j < s.Length; j++)
                 {
                     if (s[j] == '\n')
                     {
                         buf.Append('\t').Append(s.Substring(off, j - off))
                         .Append('\n');
                         off = j + 1;
                     }
                     else if (j == s.Length - 1)
                     {
                         buf.Append('\t').Append(s.Substring(off))
                         .Append(';').Append('\n');
                     }
                 }
             }
         }
     }
     buf.Append('}');
     return(buf.ToString());
 }
        override public string ToString()
        {
            string s = org.vr.rts.util.RTSUtil.linkString(' ',
                                                          mLeft == null ? null : mLeft.ToString(), mSrc,
                                                          mRight == null ? null : mRight.ToString());

            return(s);
        }
Ejemplo n.º 3
0
 override public string ToString()
 {
     if (mLins.length() == 0)
     {
         return(mSrc);
     }
     System.Text.StringBuilder buf = new System.Text.StringBuilder();
     for (int i = 0; i < mLins.length(); i++)
     {
         IRTSLinker l = mLins.get(i);
         if (l != null)
         {
             buf.Append(l.ToString());
         }
         buf.Append(mSrc);
     }
     return(buf.ToString());
 }
Ejemplo n.º 4
0
 override public string ToString()
 {
     System.Text.StringBuilder buf = new System.Text.StringBuilder();
     if (mCastType != null)
     {
         buf.Append('(').Append(mCastType.typeName()).Append(')');
     }
     if (mProperty != 0)
     {
         buf.Append(RTSUtil.propertyName(mProperty));
     }
     buf.Append(mSrc);
     if (mArg != null)
     {
         buf.Append(mArg.ToString());
     }
     return(buf.ToString());
 }