Description of JavaLanguage.
Inheritance: ILanguagePackage
Esempio n. 1
0
        private static ILanguagePackage SelectLanguage(RecorderLanguages languageCode)
        {
            ILanguagePackage languagePackage = null;

            switch (languageCode)
            {
            case RecorderLanguages.PowerShell:
                languagePackage = new PsLanguage();
                break;

            case RecorderLanguages.CSharp:
                languagePackage = new CsLanguage();
                break;

            case RecorderLanguages.Java:
                languagePackage = new JavaLanguage();
                break;

            default:
                //throw new Exception("Invalid value for RecorderLanguages");
                languagePackage = new PsLanguage();
                break;
            }

            return(languagePackage);
        }
Esempio n. 2
0
 private static ILanguagePackage selectLanguage(RecorderLanguages languageCode)
 {
     ILanguagePackage languagePackage = null;
     
     switch (languageCode) {
         case RecorderLanguages.PowerShell:
             languagePackage = new PSLanguage();
             break;
         case RecorderLanguages.CSharp:
             languagePackage = new CSLanguage();
             break;
         case RecorderLanguages.Java:
             languagePackage = new JavaLanguage();
             break;
         default:
             //throw new Exception("Invalid value for RecorderLanguages");
             languagePackage = new PSLanguage();
             break;
     }
     
     return languagePackage;
 }