Package ghidra.program.model.lang
Interface LanguageService
- 
- All Known Subinterfaces:
- VersionedLanguageService
 - All Known Implementing Classes:
- DefaultLanguageService
 
 public interface LanguageServiceService that provides a Language given a name, and information about the language.
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description LanguagegetDefaultLanguage(Processor processor)Returns the default Language to use for the given processor;LanguagegetLanguage(LanguageID languageID)Returns the language with the given language IDjava.util.List<LanguageCompilerSpecPair>getLanguageCompilerSpecPairs(ExternalLanguageCompilerSpecQuery query)Returns all known language/compiler spec pairs which satisfy the criteria identify by the non-null parameters.java.util.List<LanguageCompilerSpecPair>getLanguageCompilerSpecPairs(LanguageCompilerSpecQuery query)Returns all known language/compiler spec pairs which satisfy the criteria identify by the non-null parameters.LanguageDescriptiongetLanguageDescription(LanguageID languageID)Get language information for the given language ID.java.util.List<LanguageDescription>getLanguageDescriptions(boolean includeDeprecatedLanguages)Returns all known language Descriptionsjava.util.List<LanguageDescription>getLanguageDescriptions(Processor processor)Returns all language Descriptions associated with the given processor.java.util.List<LanguageDescription>getLanguageDescriptions(Processor processor, Endian endianess, java.lang.Integer size, java.lang.String variant)Deprecated.usegetLanguageDescriptions(Processor)instead
 
- 
- 
- 
Method Detail- 
getLanguageLanguage getLanguage(LanguageID languageID) throws LanguageNotFoundException Returns the language with the given language ID- Parameters:
- languageID- the ID of language to retrieve
- Returns:
- the Languagematching the given ID
- Throws:
- LanguageNotFoundException- if no language can be found for the given ID
 
 - 
getDefaultLanguageLanguage getDefaultLanguage(Processor processor) throws LanguageNotFoundException Returns the default Language to use for the given processor;- Parameters:
- processor- the processor for which to get a language.
- Throws:
- LanguageNotFoundException- if there is no languages at all for the given processor.
 
 - 
getLanguageDescriptionLanguageDescription getLanguageDescription(LanguageID languageID) throws LanguageNotFoundException Get language information for the given language ID.- 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.
 
 - 
getLanguageDescriptionsjava.util.List<LanguageDescription> getLanguageDescriptions(boolean includeDeprecatedLanguages) Returns all known language Descriptions- Parameters:
- includeDeprecatedLanguages- TODO
- Returns:
- all know language Descriptions.
 
 - 
getLanguageDescriptions@Deprecated java.util.List<LanguageDescription> getLanguageDescriptions(Processor processor, Endian endianess, java.lang.Integer size, java.lang.String variant) Deprecated.usegetLanguageDescriptions(Processor)insteadReturns all known language descriptions which satisfy the criteria identify by the non-null parameters. A null value implies a don't-care wildcard value.- Parameters:
- processor- the processor for which to get a language
- endianess- big or little
- size- processor address space size (in bits)
- variant- the processor version (usually 'default')
- Returns:
- the language descriptions that fit the parameters
 
 - 
getLanguageCompilerSpecPairsjava.util.List<LanguageCompilerSpecPair> getLanguageCompilerSpecPairs(LanguageCompilerSpecQuery query) Returns all known language/compiler spec pairs which satisfy the criteria identify by the non-null parameters. A null value implies a don't-care wildcard value. OMITS DEPRECATED LANGUAGES.- Parameters:
- query- TODO
- Returns:
 
 - 
getLanguageCompilerSpecPairsjava.util.List<LanguageCompilerSpecPair> getLanguageCompilerSpecPairs(ExternalLanguageCompilerSpecQuery query) Returns all known language/compiler spec pairs which satisfy the criteria identify by the non-null parameters. A null value implies a don't-care wildcard value. OMITS DEPRECATED LANGUAGES. This uses an ExternalLanguageCompilerSpecQuery rather than a LanguageCompilerSpecQuery.- Parameters:
- query-
- Returns:
 
 - 
getLanguageDescriptionsjava.util.List<LanguageDescription> getLanguageDescriptions(Processor processor) Returns all language Descriptions associated with the given processor.- Parameters:
- processor- the processor for which to retrieve all know language descriptions.
 
 
- 
 
-