Class SleighLanguageProvider
- java.lang.Object
-
- ghidra.app.plugin.processors.sleigh.SleighLanguageProvider
-
- All Implemented Interfaces:
LanguageProvider
,ExtensionPoint
public class SleighLanguageProvider extends java.lang.Object implements LanguageProvider
Searches resources for spec files and provides LanguageDescriptions for these specifications
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface ghidra.util.classfinder.ExtensionPoint
ExtensionPoint.Exclude, ExtensionPoint.Util
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
LANGUAGE_DIR_NAME
-
Constructor Summary
Constructors Constructor Description SleighLanguageProvider()
SleighLanguageProvider(ResourceFile ldefsFile)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Language
getLanguage(LanguageID languageId)
Returns the language with the given name or null if no language has that nameLanguageDescription[]
getLanguageDescriptions()
Returns a list of language descriptions provided by this providerboolean
hadLoadFailure()
boolean
isLanguageLoaded(LanguageID languageId)
Returns true if the given language has been successfully loaded
-
-
-
Field Detail
-
LANGUAGE_DIR_NAME
public static final java.lang.String LANGUAGE_DIR_NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SleighLanguageProvider
public SleighLanguageProvider() throws java.lang.Exception
- Throws:
java.lang.Exception
-
SleighLanguageProvider
public SleighLanguageProvider(ResourceFile ldefsFile) throws java.lang.Exception
- Throws:
java.lang.Exception
-
-
Method Detail
-
hadLoadFailure
public boolean hadLoadFailure()
- Specified by:
hadLoadFailure
in interfaceLanguageProvider
- Returns:
- true if one of more languages or language description failed to load properly.
-
getLanguage
public Language getLanguage(LanguageID languageId)
Description copied from interface:LanguageProvider
Returns the language with the given name or null if no language has that name- Specified by:
getLanguage
in interfaceLanguageProvider
- Parameters:
languageId
- the name of the language to be retrieved- Returns:
- the
Language
with the given name
-
isLanguageLoaded
public boolean isLanguageLoaded(LanguageID languageId)
Description copied from interface:LanguageProvider
Returns true if the given language has been successfully loaded- Specified by:
isLanguageLoaded
in interfaceLanguageProvider
- Parameters:
languageId
- the name of the language to be retrieved- Returns:
- true if the given language has been successfully loaded
-
getLanguageDescriptions
public LanguageDescription[] getLanguageDescriptions()
Description copied from interface:LanguageProvider
Returns a list of language descriptions provided by this provider- Specified by:
getLanguageDescriptions
in interfaceLanguageProvider
-
-