Package ghidra.program.model.lang
Interface VersionedLanguageService
- All Superinterfaces:
LanguageService
Service that provides a Language given a name, and
information about the language.
-
Method Summary
Modifier and TypeMethodDescriptiongetLanguage
(LanguageID languageID, int version) Returns a specific language version with the given language ID.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 Details
-
getLanguage
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.
-