Package ghidra.program.util
Class OldLanguageFactory
java.lang.Object
ghidra.program.util.OldLanguageFactory
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
createOldLanguageFile
(Language lang, File file) Create old-language file for the specified language.Return the Language Descriptions for the latest version of all old languages.getLatestOldLanguage
(LanguageID languageID) Return language description for the latest version of an old languagegetOldLanguage
(LanguageID languageID, int majorVersion) Return old language if an old language specification file exists for the specified language and version.static OldLanguageFactory
Returns the single instance of the OldLanguageFactory.
-
Field Details
-
OLD_LANGUAGE_FILE_EXT
- See Also:
-
-
Method Details
-
getOldLanguageFactory
Returns the single instance of the OldLanguageFactory. -
getOldLanguage
Return old language if an old language specification file exists for the specified language and version.- Parameters:
languageID
-majorVersion
- language major version, or -1 for latest version- Returns:
- old language or null if specification not found.
-
getLatestOldLanguage
Return language description for the latest version of an old language- Parameters:
languageID
-- Returns:
- old language description or null if specification not found.
-
getLatestOldLanaguageDescriptions
Return the Language Descriptions for the latest version of all old languages. -
createOldLanguageFile
public static void createOldLanguageFile(Language lang, File file) throws IOException, LanguageNotFoundException Create old-language file for the specified language.- Parameters:
lang
- languagefile
- output file- Throws:
IOException
- if file error occursLanguageNotFoundException
- if lang is unknown to DefaultLanguageService
-