Package ghidra.program.model.lang
Interface LanguageService
-
- All Known Subinterfaces:
VersionedLanguageService
- All Known Implementing Classes:
DefaultLanguageService
public interface LanguageService
Service that provides a Language given a name, and information about the language.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description Language
getDefaultLanguage(Processor processor)
Returns the default Language to use for the given processor;Language
getLanguage(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.LanguageDescription
getLanguageDescription(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
-
getLanguage
Language getLanguage(LanguageID languageID) throws LanguageNotFoundException
Returns the language with the given language ID- Parameters:
languageID
- the ID of language to retrieve- Returns:
- the
Language
matching the given ID - Throws:
LanguageNotFoundException
- if no language can be found for the given ID
-
getDefaultLanguage
Language 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.
-
getLanguageDescription
LanguageDescription 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.
-
getLanguageDescriptions
java.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 languageendianess
- big or littlesize
- processor address space size (in bits)variant
- the processor version (usually 'default')- Returns:
- the language descriptions that fit the parameters
-
getLanguageCompilerSpecPairs
java.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:
-
getLanguageCompilerSpecPairs
java.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:
-
getLanguageDescriptions
java.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.
-
-