Package ghidra.program.util
Class OldLanguageFactory
- java.lang.Object
-
- ghidra.program.util.OldLanguageFactory
-
public class OldLanguageFactory extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
OLD_LANGUAGE_FILE_EXT
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
createOldLanguageFile(Language lang, java.io.File file)
Create old-language file for the specified language.LanguageDescription[]
getLatestOldLanaguageDescriptions()
Return the Language Descriptions for the latest version of all old languages.LanguageDescription
getLatestOldLanguage(LanguageID languageID)
Return language description for the latest version of an old languageLanguage
getOldLanguage(LanguageID languageID, int majorVersion)
Return old language if an old language specification file exists for the specified language and version.static OldLanguageFactory
getOldLanguageFactory()
Returns the single instance of the OldLanguageFactory.
-
-
-
Field Detail
-
OLD_LANGUAGE_FILE_EXT
public static final java.lang.String OLD_LANGUAGE_FILE_EXT
- See Also:
- Constant Field Values
-
-
Method Detail
-
getOldLanguageFactory
public static OldLanguageFactory getOldLanguageFactory()
Returns the single instance of the OldLanguageFactory.
-
getOldLanguage
public Language getOldLanguage(LanguageID languageID, int majorVersion)
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
public LanguageDescription getLatestOldLanguage(LanguageID languageID)
Return language description for the latest version of an old language- Parameters:
languageID
-- Returns:
- old language description or null if specification not found.
-
getLatestOldLanaguageDescriptions
public LanguageDescription[] getLatestOldLanaguageDescriptions()
Return the Language Descriptions for the latest version of all old languages.
-
createOldLanguageFile
public static void createOldLanguageFile(Language lang, java.io.File file) throws java.io.IOException, LanguageNotFoundException
Create old-language file for the specified language.- Parameters:
lang
- languagefile
- output file- Throws:
java.io.IOException
- if file error occursLanguageNotFoundException
- if lang is unknown to DefaultLanguageService
-
-