Beispiel #1
0
 private void fetchMethods(EA.Element e, IMethodedItem i)
 {
     foreach (EA.Method x in e.Methods)
     {
         Method m = new Method();
         m.Name       = x.Name;
         m.ReturnType = x.ReturnType;
         m.Stereotype = x.Stereotype;
         foreach (EA.Parameter p in x.Parameters)
         {
             m.AddArgument(p.Type, p.Name);
         }
         ow.WriteLine("added method {0} {1}({2}) <<{3}>>",
                      m.ReturnType,
                      m.Name,
                      Prelude.MappenStrings((t) => string.Format("{0} {1}", t.fst, t.snd), ", ", m.Arguments),
                      m.Stereotype);
         i.AddMethod(m);
     }
 }