Exemple #1
0
 /// <summary>Dumps the union arm to <code>System.out</code>.</summary>
 /// <remarks>Dumps the union arm to <code>System.out</code>.</remarks>
 public virtual void dump()
 {
     if (value == null)
     {
         if (element == null)
         {
             System.Console.Out.WriteLine("  default: -");
         }
         else
         {
             if (element.identifier != null)
             {
                 System.Console.Out.Write("  default: ");
                 element.dump();
             }
             else
             {
                 System.Console.Out.WriteLine("  default: void");
             }
         }
     }
     else
     {
         if (element == null)
         {
             System.Console.Out.WriteLine(" " + value + ": -");
         }
         else
         {
             if (element.identifier != null)
             {
                 System.Console.Out.Write("  " + value + ": ");
                 element.dump();
             }
             else
             {
                 System.Console.Out.WriteLine("  " + value + ": void");
             }
         }
     }
 }
        /// <summary>
        /// Dumps the structure together with its attribute elements to
        /// <code>System.out</code>.
        /// </summary>
        /// <remarks>
        /// Dumps the structure together with its attribute elements to
        /// <code>System.out</code>.
        /// </remarks>
        public virtual void dump()
        {
            System.Console.Out.WriteLine("STRUCT " + identifier + ":");
            int size = elements.Count;

            for (int idx = 0; idx < size; ++idx)
            {
                org.acplt.oncrpc.apps.jrpcgen.JrpcgenDeclaration d = (org.acplt.oncrpc.apps.jrpcgen.JrpcgenDeclaration
                                                                      )elements[idx];
                System.Console.Out.Write("  ");
                d.dump();
            }
            System.Console.Out.WriteLine();
        }