コード例 #1
0
        public void upgrade(OldTSpace.TypeRepTemplate inV, NewTSpace.InterfaceRepTemplate outV)
        {
            upgrade(inV as OldTSpace.TypeRepTemplate, outV as NewTSpace.TypeRepTemplate);

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


            foreach (OldTSpace.MethodRepTemplate inM in inV.Methods)
            {
                NewTSpace.MethodRepTemplate outM = new NewTSpace.MethodRepTemplate();
                upgrade(inM, outM);
                outV.Methods.Add(outM);
            }

            foreach (OldTSpace.PropRepTemplate inP in inV.Properties)
            {
                NewTSpace.PropRepTemplate outP = new NewTSpace.PropRepTemplate();
                upgrade(inP, outP);
                outV.Properties.Add(outP);
            }
        }
コード例 #2
0
        public void upgrade(OldTSpace.PropRepTemplate inV, NewTSpace.PropRepTemplate outV)
        {
            upgrade(inV as OldTSpace.FieldRepTemplate, outV as NewTSpace.FieldRepTemplate);

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

            if (!String.IsNullOrEmpty(inV.Set))
            {
                outV.JavaSet = inV.Set;
            }
        }
コード例 #3
0
		public void upgrade(OldTSpace.TypeRepTemplate inV, NewTSpace.InterfaceRepTemplate outV) {
			
			upgrade(inV as OldTSpace.TypeRepTemplate, outV as NewTSpace.TypeRepTemplate);
	
			outV.Inherits = inV.Inherits;
			outV.Imports = inV.Imports;	
			if (!String.IsNullOrEmpty(inV.Java))
				outV.Java = inV.Java;			
			
			
			foreach (OldTSpace.MethodRepTemplate inM in inV.Methods) {			
				NewTSpace.MethodRepTemplate outM = new NewTSpace.MethodRepTemplate();
				upgrade(inM, outM);
				outV.Methods.Add(outM);
			}		

			foreach (OldTSpace.PropRepTemplate inP in inV.Properties) {			
				NewTSpace.PropRepTemplate outP = new NewTSpace.PropRepTemplate();
				upgrade(inP, outP);
				outV.Properties.Add(outP);
			}		

		}