예제 #1
0
        /// <summary>
        /// Create Project from system known data
        /// </summary>
        /// <param name="inProject"></param>
        /// <param name="inAliasList"></param>
        /// <param name="inSystemNamespace"></param>
        public static ProjectInformation DoFullRun(List <LanguageMappingObject> inLanguageMapping, IConverter inConverter, ILoadOOPLanguage inLanguageLoader, params string[] inClassStringData)
        {
            var tmpProject = inLanguageLoader.CreateObjectInformation(inClassStringData.ToList(), null);

            foreach (var tmpClass in tmpProject.ClassList)
            {
                if (!tmpClass.UsingList.Contains("java.lang"))
                {
                    tmpClass.UsingList.Add("java.lang");
                }
            }

            new AnalyzerCore().LinkProjectInformation(tmpProject);

            new NamingConvertionHelper(inConverter).ConvertProject(tmpProject);

            MapLanguageNames(tmpProject, inLanguageMapping);

            foreach (var tmpCurrentClass in tmpProject.ClassList.Where(inItem => inItem.ClassType == Enum.ClassTypeEnum.Normal))
            {
                inConverter.AnalyzerClassModifier(tmpCurrentClass);
            }

            return(tmpProject);
        }