Ejemplo n.º 1
0
        public void upgrade(OldTSpace.CastRepTemplate inV, NewTSpace.CastRepTemplate outV)
        {
            upgrade(inV as OldTSpace.TranslationBase, outV as NewTSpace.TranslationBase);

            outV.Imports = inV.Imports;
            if (!String.IsNullOrEmpty(inV.From))
            {
                outV.From = inV.From;
            }

            if (!String.IsNullOrEmpty(inV.To))
            {
                outV.To = inV.To;
            }

            if (!String.IsNullOrEmpty(inV.Java))
            {
                outV.Java = inV.Java;
            }
        }
Ejemplo n.º 2
0
        public void upgrade(OldTSpace.ClassRepTemplate inV, NewTSpace.ClassRepTemplate outV)
        {
            upgrade(inV as OldTSpace.TypeRepTemplate, outV as NewTSpace.InterfaceRepTemplate);

            foreach (OldTSpace.ConstructorRepTemplate inC in inV.Constructors)
            {
                NewTSpace.ConstructorRepTemplate outC = new NewTSpace.ConstructorRepTemplate();
                upgrade(inC, outC);
                outV.Constructors.Add(outC);
            }
            foreach (OldTSpace.FieldRepTemplate inF in inV.Fields)
            {
                NewTSpace.FieldRepTemplate outF = new NewTSpace.FieldRepTemplate();
                upgrade(inF, outF);
                outV.Fields.Add(outF);
            }
            foreach (OldTSpace.CastRepTemplate inC in inV.Casts)
            {
                NewTSpace.CastRepTemplate outC = new NewTSpace.CastRepTemplate();
                upgrade(inC, outC);
                outV.Casts.Add(outC);
            }
        }
Ejemplo n.º 3
0
		public void upgrade(OldTSpace.ClassRepTemplate inV, NewTSpace.ClassRepTemplate outV) {
			upgrade(inV as OldTSpace.TypeRepTemplate, outV as NewTSpace.InterfaceRepTemplate);
		
			foreach (OldTSpace.ConstructorRepTemplate inC in inV.Constructors) {			
				NewTSpace.ConstructorRepTemplate outC = new NewTSpace.ConstructorRepTemplate();
				upgrade(inC, outC);
				outV.Constructors.Add(outC);
			}		
			foreach (OldTSpace.FieldRepTemplate inF in inV.Fields) {			
				NewTSpace.FieldRepTemplate outF = new NewTSpace.FieldRepTemplate();
				upgrade(inF, outF);
				outV.Fields.Add(outF);
			}		
			foreach (OldTSpace.CastRepTemplate inC in inV.Casts) {			
				NewTSpace.CastRepTemplate outC = new NewTSpace.CastRepTemplate();
				upgrade(inC, outC);
				outV.Casts.Add(outC);
			}		
			
		}