Package ghidra.program.model.lang
Interface VersionedLanguageService
-
- All Superinterfaces:
LanguageService
public interface VersionedLanguageService extends LanguageService
Service that provides a Language given a name, and information about the language.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Language
getLanguage(LanguageID languageID, int version)
Returns a specific language version with the given language ID.LanguageDescription
getLanguageDescription(LanguageID languageID, int version)
Get language information for a specific version of the given language ID.-
Methods inherited from interface ghidra.program.model.lang.LanguageService
getDefaultLanguage, getLanguage, getLanguageCompilerSpecPairs, getLanguageCompilerSpecPairs, getLanguageDescription, getLanguageDescriptions, getLanguageDescriptions, getLanguageDescriptions
-
-
-
-
Method Detail
-
getLanguage
Language getLanguage(LanguageID languageID, int version) throws LanguageNotFoundException
Returns a specific language version with the given language ID. This form should only be used when handling language upgrade concerns.- Parameters:
languageID
- the ID of language to retrieve.version
- major version- Throws:
LanguageNotFoundException
- if the specified language version can not be found for the given ID.
-
getLanguageDescription
LanguageDescription getLanguageDescription(LanguageID languageID, int version) throws LanguageNotFoundException
Get language information for a specific version of the given language ID. This form should only be used when handling language upgrade concerns.- Parameters:
languageID
- the id for the language.- Returns:
- language information for the given language ID.
- Throws:
LanguageNotFoundException
- if there is no language for the given ID.
-
-